Skip to content

Opening book details…

About this document

Understanding the List Monad in Haskell by Qin Krein is a document available to read on EtoBox.

This document discusses the list monad, illustrating how lists can represent non-deterministic values in Haskell. It explains the Monad instance for lists, how to use the >>= operator to apply functions to non-deterministic values, and introduces the MonadPlus type class for handling failures and combining results. The document also includes examples of using list comprehensions and the guard function to filter results, culminating in a practical application involving a knight

Author
Qin Krein
Language
EN