Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- mkLocWithAnns :: (Data e, Monad m) => e -> DeltaPos -> [(KeywordId, DeltaPos)] -> TransformT m (Located e)
- mkLoc :: (Data e, Monad m) => e -> TransformT m (Located e)
- mkParenT :: (Data x, Monad m) => (Located x -> x) -> Located x -> TransformT m (Located x)
- setAnnsForT :: (Data e, Monad m) => Located e -> DeltaPos -> [(KeywordId, DeltaPos)] -> TransformT m (Located e)
- swapEntryDPT :: (Data a, Data b, Monad m) => Located a -> Located b -> TransformT m ()
Documentation
mkLocWithAnns :: (Data e, Monad m) => e -> DeltaPos -> [(KeywordId, DeltaPos)] -> TransformT m (Located e) Source #
Generates a unique location and wraps the given ast chunk with that location Also adds a DP and an annotation at that location
mkLoc :: (Data e, Monad m) => e -> TransformT m (Located e) Source #
mkLoc
generates a unique location and wraps the given ast chunk with that location
Also adds an empty annotation at that location
mkParenT :: (Data x, Monad m) => (Located x -> x) -> Located x -> TransformT m (Located x) Source #
Add an open and close paren annotation to a located thing