X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=assignment6.mdwn;h=82aee95f9bdcb506e52c1307a54a15ce9340e899;hp=30763c1a786c93e7ac4d039942a7f69865623849;hb=ce6251343f916dcbfeb7160aff5b1312fa31ce7f;hpb=16d60ccef54c35bf297e46ed0862da0bcd6fa475 diff --git a/assignment6.mdwn b/assignment6.mdwn index 30763c1a..82aee95f 100644 --- a/assignment6.mdwn +++ b/assignment6.mdwn @@ -1,4 +1,4 @@ -1. **Build a state monad.** Based on the division by zero monad, +1. **Build a State monad.** Based on the division by zero monad, build a system that will evaluate arithmetic expressions. Instead of returning a simple integer as a result, it will deliver the correct answer along with a count of the number of operations performed during @@ -24,6 +24,9 @@ your solution). You'll need to define a computation monad type, unit, bind, and lift2. We encourage you to consider this hint: [[hints/Assignment 6 Hint 1]]. +