Pattern synonyms

Pattern synonyms are an extension to the Haskell programming language provided by GHC since GHC 7.8.1, enabled by language extension PatternSynonyms. There are three forms: unidirectional, bidirectional and explicitly bidirectional. Synonyms A synonym is introduced with the keyword pattern. Synonyms have three forms: prefix, infix and record pattern. The prefix form is . For example: […]