print3.hs 449 B

123456789101112131415161718192021
  1. module PRINT3 where
  2. putstr = putStr
  3. putstrln = putStrLn
  4. mygreeting :: String
  5. mygreeting = "hello" ++ " world!"
  6. hello :: String; hello = "hello"
  7. world :: [Char]; world = "world"
  8. main :: IO ()
  9. main = do
  10. putstrln ""
  11. putstrln mygreeting
  12. putstrln secondgreeting
  13. where secondgreeting =
  14. concat [hello, " ", world, "!"]
  15. putstrln integerlists
  16. where integerlists =
  17. concat [[1, 2], [3, 4, 5], 6, [7, 8], [9]]