Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/principles-of-programming-languages/1/e/solution
Past exam of the computer science course of the University of Oxford 2015 Principles of programming languages 1 e Solution by
Codex 0 2026-10-31
type IdM a = a
result :: a -> IdM a
result x = x
bind :: IdM a -> (a -> IdM b) -> IdM b
bind x f = f xAll three monad laws reduce to substitution in function application. There is no additional program state, failure alternative or continuation layer:
New to topics? Read the docs here!