Skip to content

Instantly share code, notes, and snippets.

@benhoskings
Last active December 20, 2015 21:49
Show Gist options
  • Save benhoskings/6200295 to your computer and use it in GitHub Desktop.
Save benhoskings/6200295 to your computer and use it in GitHub Desktop.
-- This works as I'd expect.
module Main where
main = do
name <- getContents
putStrLn $ "Hello, " ++ "Ben" ++ "!"
=> "Hello, Ben!"
> :type "Ben" -- [Char]
-- In this case, the final string isn't concatenated.
module Main where
main = do
name <- getContents
putStrLn $ "Hello, " ++ name ++ "!"
=> "Hello, Ben"
> :type name -- String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment