[Haskell-cafe] Multi Line String literals

Joe Thornber joe.thornber at gmail.com
Thu Apr 26 08:43:09 EDT 2007


On 26/04/07, Bas van Dijk <v.dijk.bas at gmail.com> wrote:
> test = putStrLn $ toIsString $ do "I"
>                                                "need"
>                                                "MultiLine"
>                                                "String"
>                                                "literals!"

but it's simpler to just write something like:

test  = putStr $ unlines ["I",
                                   "need",
                                   "multiline",
                                   "string",
                                   "literals"]

- Joe


More information about the Haskell-Cafe mailing list