> module Hw4 where
To complete this homework,
Download the virtual machine The VM contains everything you need to complete HW4.
Open the hw4
folder on the desktop (or tar -zxvf hw4.tar.gz
) or download Hw4.tar.gz to see files for each part:
Fill in the code where noted.
Package the files into Hw4.tar.gz
by running make package
.
Submit by emailing Hw4.tar.gz
to cse230@goto.ucsd.edu
with the subject “Hw4”; you will receive a confirmation email after submitting.
Notes
Your code must typecheck against the given type signatures.
Please post questions to Piazza.
Snapshots
The VM has a custom build of Liquid Haskell that snapshots each file you verify. We will use these snapshots to improve Liquid Haskell; the submission and snapshots will not affect your grade; the grade depends only on the final code submitted.
Emacs
We have also configured emacs to automatically run Liquid Haskell as you work. If you’re not already comfortable using emacs, feel free to run Liquid Haskell from the command-line, by:
$ liquid file.lhs
This problem is simply about extending the type inference algorithm we saw in lecture; there are no refinement types involved.