News for hackers. Stuff that matters.
Re:Haskell in Production by nightski on Sunday October 20, 2019 @10:34AM (#21304394)
True, do notation does require you to add a line -

  main = do
      print "Enter name:"
      name <- getLine
      print ("Hello " ++ name ++ "!")
But I only said that it makes this convenient not that it allowed you to write any statement you want. It still makes it easy to intersperse pure and non-pure code.

There are no comments on this comment yet.