A function without any effect is called
total
and corresponds to mathematically total functions – a good place to be. Then we have effects for partial functions that can raise exceptions (exn
), and potentially non-terminating functions asdiv
(divergent). The combination ofexn
anddiv
is calledpure
as that corresponds to Haskell’s notion of purity. On top of that we find mutability (asst
) up to full non-deterministic side effects inio
.
1 Like