
16 Jul
2015
16 Jul
'15
8:26 p.m.
This would all be much easier with pattern matching. For example: instance Functor Val where fmap f (Val x) = Val (f x) instance Applicative Val where pure = Val Val f <*> Val x = Val (f x)