aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/PatternSyns.hs
Commit message (Collapse)AuthorAgeFilesLines
* Fix: Generate pattern signatures for constructors exported as patterns (#663)Tim Baumann2017-08-061-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | * Fix pretty-printing of pattern signatures Pattern synonyms can have up to two contexts, both having a different semantic meaning: The first holds the constraints required to perform the matching, the second contains the constraints provided by a successful pattern match. When the first context is empty but the second is not it is necessary to render the first, empty context. * Generate pattern synonym signatures for ctors exported as patterns This fixes #653. * Simplify extractPatternSyn It is not necessary to generate the simplest type signature since it will be simplified when pretty-printed. * Add changelog entries for PR #663 * Fix extractPatternSyn error message
* Allow user defined signatures for pattern synonyms (#631)Alex Biehl2017-06-031-0/+5
|
* Add test case for PatternSynonymsnand2014-02-111-0/+22
This just tests various stuff including poly-kinded patterns and operator patterns to make sure the rendering isn't broken. Signed-off-by: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>