[Haskell-cafe] Input/Output file

David House dmhouse at gmail.com
Mon Jul 3 12:33:02 EDT 2006


On 03/07/06, Stefan Holdermans <stefan at cs.uu.nl> wrote:
>    test s
>          | ...
>          | ...
>          | otherwise = error $ "The file contains: " ++ s

Or perhaps,

...
| otherwise = error $ "The file contains: " ++ show s

Then all the newlines and other control characters will be printed in
their escaped form, making it more obvious.

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list