A Small (Real) Example of the Reader and Writer Monads
This is an example of using the Reader and Writer monads to solve a problem which cropped up on a project I am working on.
This is an example of using the Reader and Writer monads to solve a problem which cropped up on a project I am working on.
I recently came across another elegant use of the type class pattern, so I thought I’d share it with here.
This is a simple example of use of a mysterious beast called a Kleisli arrow.
Here is an example of so-called phantom types and covariance in Scala to improve type safety and correctness. The example is a simplified version from a real...
Typeclasses are most famously a language feature of Haskell that has gained interest in the Scala community. Here I describe the basic pattern with reference...