Immanuel Litzroth <immanuell@enfocus.be> writes:
I have a small question relating to literate haskell programs that use the \begin{code} \end{code} style. Am I correct to assume that \end{code} inside a string should be recognized as being inside a string. The report seems to say this, but the unlit that is distributed with ghc doesn't grok this. Has anyone written an Unlit module in Haskell?
I have attached the Unlit.hs module from the nhc98 compiler, based on the original specification in the the Haskell 1.2 Report. Use the exported function unlit :: String -> String -> String whose first argument is the filename (for error messages), the second argument is the file content, and whose result is the un-literated file. Regards, Malcolm