[Haskell-cafe] Re: Can we come out of a monad?

Dean Herington heringtonlacey at mindspring.com
Tue Aug 3 01:48:10 EDT 2010


At 8:29 PM -0400 8/2/10, Brandon S Allbery KF8NH wrote:
>
>On 8/2/10 19:59 , aditya siram wrote:
>>  Agreed. In fact I have the most trouble imagining what Haskell code looked
>>  like before monads.
>
>IIRC the type of main was something like [Request] -> [Response].

Actually, the Haskell 1.2 report (published in SIGPLAN Notices, May 1992) has:

     main :: [Response] -> [Request]

(Yes, it was awkward to program I/O that way!)  That version of 
Haskell also had a continuation-based I/O framework.

Dean


More information about the Haskell-Cafe mailing list