Safe Haskell | None |
---|---|
Language | Haskell2010 |
Language.Haskell.Tools.BackendGHC.Patterns
Description
Functions that convert the pattern-related elements of the GHC AST to corresponding elements in the Haskell-tools AST representation
Synopsis
- trfPattern :: forall n r p. (TransformName n r, n ~ GhcPass p) => Located (Pat n) -> Trf (Ann UPattern (Dom r) RangeStage)
- correctPatternLoc :: Located (Pat n) -> Located (Pat n)
- trfPattern' :: forall n r p. (TransformName n r, n ~ GhcPass p) => Pat n -> Trf (UPattern (Dom r) RangeStage)
- trfPatternField' :: forall n r p. (TransformName n r, n ~ GhcPass p) => HsRecField n (LPat n) -> Trf (UPatternField (Dom r) RangeStage)
Documentation
trfPattern :: forall n r p. (TransformName n r, n ~ GhcPass p) => Located (Pat n) -> Trf (Ann UPattern (Dom r) RangeStage) Source #
correctPatternLoc :: Located (Pat n) -> Located (Pat n) Source #
Locations for right-associative infix patterns are incorrect in GHC AST
trfPattern' :: forall n r p. (TransformName n r, n ~ GhcPass p) => Pat n -> Trf (UPattern (Dom r) RangeStage) Source #
trfPatternField' :: forall n r p. (TransformName n r, n ~ GhcPass p) => HsRecField n (LPat n) -> Trf (UPatternField (Dom r) RangeStage) Source #