hpp-0.6.4: A Haskell pre-processor
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hpp.Directive

Description

Implement the logic of CPP directives (commands prefixed with an octothorpe).

Synopsis

Documentation

directive :: forall m. (Monad m, HasError m, HasHppState m, HasEnv m) => HppT [String] (Parser m [TOKEN]) Bool Source #

Handle preprocessor directives (commands prefixed with an octothorpe).

macroExpansion :: (Monad m, HasHppState m, HasError m, HasEnv m) => HppT [String] (Parser m [TOKEN]) (Maybe [TOKEN]) Source #

Expands an input line producing a stream of output lines.