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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.AST.FromGHC.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 :: TransformName n r => 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' :: TransformName n r => Pat n -> Trf (UPattern (Dom r) RangeStage) Source #

trfPatternField' :: TransformName n r => HsRecField n (LPat n) -> Trf (UPatternField (Dom r) RangeStage) Source #