HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Modulesop-extras-0.4.1.1Haskell2010

Data.SOP.Match

Intended for qualified import

import           Data.SOP.Match (Mismatch(..))
import qualified Data.SOP.Match as Match
Contents
  1. Utilities
  2. SOP operators
Synopsis
datadata Mismatch (f :: k -> Type) (g :: k -> Type) (xs :: [k]) where

We have a mismatch in the index between two NS

Constructors

  • ML :: f x -> NS g xs1 -> Mismatch f g (x ': xs1)

    The left is at the current x and the right is somewhere in the later xs

  • MR :: NS f xs1 -> g x -> Mismatch f g (x ': xs1)

    The right is at the current x and the left is somewhere in the later xs

  • MS :: Mismatch f g xs1 -> Mismatch f g (x ': xs1)

    There is a mismatch later on in the xs

Instances10HTrans, HAp, Eq, Ord, Show, NoThunks, …

Utilities

SOP operators