Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module provides combinators for constructing Haskell patterns.
Documentation
conP :: RdrNameStr -> [Pat'] -> Pat' Source #
A pattern constructor.
A b c ===== conP "A" [bvar "b", bvar "c"]
conP_ :: RdrNameStr -> Pat' Source #
A pattern constructor with no arguments.
A ===== conP_ "A"
recordConP :: RdrNameStr -> [(RdrNameStr, Pat')] -> Pat' Source #