Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 629 Bytes

fca6b335.md

File metadata and controls

18 lines (12 loc) · 629 Bytes
title date
Three Layer Haskell Cake
2020-05-06

Three Layer Haskell Cake is the blog post by Matthew Parsons explaining one of the widely used Haskell application architectures using monad transformers, mtl and ReaderT.

Synopsis

We design our application in three layers.

  • Layer 1 is low-level and uses ReaderT to hold our application state.
  • Layer 3 contains the actual business logic, with pure functions (no IO)
  • Layer 2 glues the two layers together using mtl style classes

Implementation specifics