| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ast.Parser.PreProcessor.Define
Synopsis
Documentation
parseDefines :: Parser String Source #
Parses define directives. Supports conditional logic based on environment variables. Returns the processed string after applying defines.
parseDefine :: Parser String Source #
Parses a `?defined` directive.
The directive checks if an environment variable is defined.
If the variable exists, the thenBlock is returned.
Otherwise, the elseBlock (if present) is returned.