Haskell before Monads for I/O
Page 1 of 16 Replies - 1985 Views - Last Post: 19 October 2012 - 08:20 PM
#1
Haskell before Monads for I/O
Posted 14 October 2012 - 03:17 PM
Replies To: Haskell before Monads for I/O
#2
Re: Haskell before Monads for I/O
Posted 14 October 2012 - 11:55 PM
but I'm not exactly sure. you might try asking on the Haskell IRC channel, someone there would almost definitely know.
A quick Google search doesn't yield much for me. someone on the IRC might even be able to show you a page that might have other citations.
This post has been edited by ishkabible: 15 October 2012 - 12:01 AM
#3
Re: Haskell before Monads for I/O
Posted 15 October 2012 - 02:07 AM
ishkabible, on 15 October 2012 - 08:55 AM, said:
do-blocks are defined in terms of monads. So if they did exist before, we'd still need to know what they were defined in terms of to make sense of their semantics.
That said I don't think they did exist before monads as I don't see a straight-forward way to desugar them using the Request/Response model described above. Also everyone always complains about how clumsy the old-system was to use - if the old system had do-notation, it could have been used exactly like the new one.
This post has been edited by sepp2k: 15 October 2012 - 02:07 AM
#4
Re: Haskell before Monads for I/O
Posted 18 October 2012 - 07:29 AM
#5
Re: Haskell before Monads for I/O
Posted 19 October 2012 - 07:16 AM
#6
Re: Haskell before Monads for I/O
Posted 19 October 2012 - 09:33 AM
Tayacan, on 19 October 2012 - 04:16 PM, said:
Sure, you can implement things like the list monad, the maybe monad or a parser monad without language support (though you will need a sufficiently expressive type system if you want to be able to write functions that work on any type of monad), but that's not really the issue here. The issue is defining the IO monad. That's one that you can't build yourself without having some equivalent (or unsafe) IO system in place already (which Haskell did not).
This post has been edited by sepp2k: 19 October 2012 - 09:33 AM
#7
Re: Haskell before Monads for I/O
Posted 19 October 2012 - 08:20 PM
|
|

New Topic/Question
Reply


MultiQuote








|