PFP Laboratory 8

From Marek Běhálek Wiki
Revision as of 08:12, 24 October 2022 by Beh01 (talk | contribs)
Jump to navigation Jump to search

Monads

  • Consider you have a type:
newtype State s a = State { runState :: s -> (s, a) }

Make this type the instance of Monad

...