Safe Haskell | None |
---|---|
Language | Haskell98 |
This module contains functions for "resugaring" low-level GHC CoreExpr
into high-level patterns, that can receive special case handling in
different phases (e.g. ANF, Constraint Generation, etc.)
Synopsis
- data Pattern
- = PatBind { }
- | PatReturn { }
- | PatProject { }
- | PatSelfBind { }
- | PatSelfRecBind { }
- lift :: CoreExpr -> Maybe Pattern
- lower :: Pattern -> CoreExpr
High-level Source Patterns
Data type for high-level patterns -----------------------------------------
PatBind | e1 >>= x -> e2 |
PatReturn | |
PatProject | |
PatSelfBind | |
PatSelfRecBind | |
Instances
PPrint Pattern # | |
Defined in Language.Haskell.Liquid.GHC.Resugar pprintTidy :: Tidy -> Pattern -> Doc # pprintPrec :: Int -> Tidy -> Pattern -> Doc # |
Lift a CoreExpr into a Pattern
lift :: CoreExpr -> Maybe Pattern #
Lift expressions into High-level patterns ---------------------------------