Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
annotateComments :: forall a ast. (Data a, Linkable a, ASTEmbeddable a ast) => AnnotationParser ast -> ProgramFile a -> Logger (ProgramFile a) Source #
class ASTEmbeddable a ast where Source #
annotateWithAST :: a -> ast -> a Source #
class Linkable a where Source #
link :: a -> Block a -> a Source #
linkPU :: a -> ProgramUnit a -> a Source #
linkMultiple :: [Block a] -> [Block a] -> ([Block a], [Block a]) Source #
linkMultiplePUs :: [ProgramUnit a] -> [ProgramUnit a] -> ([ProgramUnit a], [ProgramUnit a]) Source #
data AnnotationParseError Source #
type AnnotationParser ast = String -> Either AnnotationParseError ast Source #
failWith :: AnnotationParser ast Source #