Cabal-1.16.0: A framework for packaging Haskell software

Portabilityportable
Maintainercabal-devel@haskell.org
Safe HaskellSafe-Inferred

Distribution.Simple.PreProcess.Unlit

Description

Remove the "literal" markups from a Haskell source file, including ">", "\begin{code}", "\end{code}", and "#"

Synopsis

Documentation

unlit :: FilePath -> String -> Either String StringSource

unlit takes a filename (for error reports), and transforms the given string, to eliminate the literate comments from the program text.

plain :: String -> String -> StringSource

No unliteration.