Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Desugaring step of the Lower Your Guards paper.
Desugars Haskell source syntax into guard tree variants Pm*. In terms of the paper, this module is concerned with Sections 3.1, Figure 4, in particular.
Documentation
desugarMatches :: [Id] -> NonEmpty (LMatch GhcTc (LHsExpr GhcTc)) -> DsM (PmMatchGroup Pre) Source #
Desugar the non-empty Match
es of a MatchGroup
.
desugarEmptyCase :: Id -> DsM PmEmptyCase Source #