[Haskell-cafe] do ghci

Greg Fitzgerald garious at gmail.com
Wed Oct 11 20:13:13 EDT 2006

Just curious, why does ghci run in the context of a 'do'?

This tripped me up when I first started learning Haskell.  It's fine once
you know what's going on, but why the restriction?  Why can't I write the
code below without 'let' and ':module'?

> two = 1 + 1
> import Data.List
> cols = transpose [[1,2,3], [4,5,6]]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20061011/e5df99ee/attachment.htm

More information about the Haskell-Cafe mailing list