Get the latest tech news

Of Course ML Has Monads (2011)


A popular meme in the world of PL’s is that “Haskell has monads”, with the implication that this is a distinctive feature of the language, separate from all others.  While it is t…

Moreover, it is shown in my paper with Chakravarty, Dreyer, and Keller how to integrate modules into the type inference mechanism of ML so that one can get automatic functor instantiation in those limited cases where it is self-evident what is intended. The other signatures, such as those for mutable arrays or for performing input and output, would be modified in a similar manner to push effects into the IO monad. (Ideally it should be possible to provide syntactic support for any signature, not just monads, but I’m not aware of a worked-out design for the general case, involving as it would an intermixing of parsing and elaboration.)

Get the Android app

Or read this on Hacker News

Read more on:

Photo of course

course

Photo of Monads

Monads

Related news:

News photo

Half of companies planning to replace customer service with AI are reversing course

News photo

Show HN: A “Course” as an MCP Server

News photo

2020s on Course To Be Weakest Decade for Global Economy Since 1960s, Says World Bank