`IO a` is just an immutable data structure that describes input/output ('effects'), sequential composition, & termination with an `a`. This single construct can describe any effectful imperative program in the world, which is why FP is a superset of imperative programming.
-
Show this thread
-
It took me a while to grasp that a Haskell program is a functional program that returns an imperative program. An amazing slight of hand.
2 replies 19 retweets 49 likes
Haskell is the greatest macroassembler ever written. Too bad Haskellers don't take staged programming (i.e. macros) seriously enough.
0 replies
1 retweet
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Read my blog!