generic-match-0.1.0.0: For when first class pattern matches are needed

Safe HaskellSafe
LanguageHaskell2010

Generic.Match

Synopsis

Documentation

match :: forall b r a x0 x1 x2 x3. (Generic b, Match a r, Rep b ~ D1 (MetaData x0 x1 x2 x3) a) => b -> Matcher b r Source #

A first class pattern matching function for anything Generic, in the style of either and maybe.

type Matcher x r = Matcher' (StripData (Rep x)) r Source #

The type of a first class pattern match, having consumed the input.