| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Ormolu.Processing.Cpp
Description
Support for CPP.
Synopsis
- data State
- processLine :: String -> State -> (String, State)
- unmaskLine :: Text -> Text
Documentation
State of the CPP processor.
Constructors
| Outside | Outside of CPP directives |
| InConditional | In a conditional expression |
| InContinuation | In a continuation (after |
processLine :: String -> State -> (String, State) Source #
Automatically mask the line when needed and update the State.
unmaskLine :: Text -> Text Source #
If the given line is masked, unmask it. Otherwise return the line unchanged.