haskell-tools-backend-ghc-1.1.1.0: Creating the Haskell-Tools AST from GHC's representations

Safe HaskellNone
LanguageHaskell2010

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

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 #