News for hackers. Stuff that matters.
Re:Why Co–Star Uses Haskell by kaba0 on Saturday November 06, 2021 @03:44PM (#29133224)
No contamination, main has a type ‘IO ()’. A readline function would be ‘IO String’, so in a way you can think of them as “upon execution, we have this type”, or the “execution wraps this type”. You can’t touch the inner type of such function naively, so this purity is viral.

There are no comments on this comment yet.