top-0.2.4: Top (typed oriented protocol) API
Data.Pattern.Transform
Description
Convert an Haskell pattern to the corresponding ByPattern channel identifier
ByPattern
Synopsis
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 #