X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2F_assignment8.mdwn;h=a05707ac7104d8b8449da3d336b7dfd51c60dfee;hp=8e28810c4009de4dda69799f4b8551389bdd4765;hb=442a8534983a824eec968ce2bb113fe60e0b1007;hpb=9fa2ebb32617d76b9dde81b4d6adfada2f15d48d diff --git a/exercises/_assignment8.mdwn b/exercises/_assignment8.mdwn index 8e28810c..a05707ac 100644 --- a/exercises/_assignment8.mdwn +++ b/exercises/_assignment8.mdwn @@ -44,3 +44,8 @@ When you have it working, try # match eval t2 with Leaf (Num f) -> f g;; - : int = 13 +3. Add in the maybe monad. Start here: + + type num = env -> int option + + Show that your code handles division by zero gracefully.