logoalt Hacker News

galaxyLogictoday at 1:35 AM3 repliesview on HN

So is there something like IO-Monad in Coalton?

I think that's the greatest feature of Haskell. Divide every program into two parts, one that can have side-effects and one that can not.


Replies

chabskatoday at 1:46 AM

That sounds nice in theory, but real programs have multiple channels of IO going on: std IO, logging, network, database, file system. I follow discussions in Haskel groups sometimes, and combining and untangling multiple monads is a persistent problem that doesn't have a good solution yet.

show 3 replies
kqrtoday at 6:39 AM

Coalton has a monad type class (and applicative etc.) but it is not a pure language, so it has no special annotation for side effects.

ux266478today at 2:44 AM

No, it wouldn't make sense. Coalton is a strict language.

show 1 reply