Skip to content

Instantly share code, notes, and snippets.

@qrilka
Last active December 14, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qrilka/81e5d0f52c6621794ed3 to your computer and use it in GitHub Desktop.
Save qrilka/81e5d0f52c6621794ed3 to your computer and use it in GitHub Desktop.
Multi.hs
module Multi where
import Prelude
multiLine :: String
multiLine = "some\
\new line\
\and third"
foo :: Int
foo = 42
inDo :: IO ()
inDo = do
putStrLn "1st\
\2nd\
\3rd"
{-- does not compile
inDoBad :: IO ()
inDoBad = do
putStrLn "1st\
\ 2nd\
\ 3rd"
--}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment