top-0.2.4: Top (typed oriented protocol) API

Safe HaskellNone
LanguageHaskell2010

Data.Pattern.Transform

Description

Convert an Haskell pattern to the corresponding ByPattern channel identifier

Synopsis

Documentation

byPattern :: forall a. Model a => IPattern -> ByPattern a Source #

Convert an Haskell pattern to the corresponding ByPattern channel identifier or throw an error if conversion fails

byPattern_ :: forall a. Model a => IPattern -> Either String (ByPattern a) Source #

Convert an Haskell pattern to the corresponding ByPattern channel identifier