logoalt Hacker News

Koshkin • today at 8:08 PM • 2 replies • view on HN

Is a widget a monad? Anyway, the examples in this tutorial are another proof that Haskell is the best imperative language!


Replies

black_knight • today at 9:25 PM

It really is a great imperative langue! The IO monad is basically a better C, if you know how to wield the FFI.

Vosporos • today at 9:56 PM

Widget is not quite a Monad, in this instance it's a newtype around a pointer and classes that mimic GTK's own class hierarchy.