Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I learned Haskell in just 15 years. Parent comment
One way of viewing Haskell is that you are lazily constructing the single composite "effect on the world" called main.
helloWorld :: IO ()
Threads complicate this but don't completely destroy the model.
There are no comments on this comment yet.
One way of viewing Haskell is that you are lazily constructing the single composite "effect on the world" called main.
then is a value representing an effect, but it only actually happens when it becomes a part of main.Threads complicate this but don't completely destroy the model.