Skip to content

Commit

Permalink
hw3 import note
Browse files Browse the repository at this point in the history
  • Loading branch information
nmheim committed May 22, 2024
1 parent 9d59812 commit 4bc8cb1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homework/hw04.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module names in Haskell have to start with capital letters.
As the file containing the module code must
be of the same name as the module name,
**all your code is required to be in a single file called `Hw4.hs`**.

::: danger IMPORTANT
Your file `Hw4.hs` has to start with the following lines:

```haskell
Expand All @@ -26,8 +28,9 @@ module Hw4 where
import Control.Applicative
import Data.Char
import Parser
import Hw3
import Hw3 -- you need this import to pass tests on BRUTE
```
:::

There are four imports. The first two necessary libraries so that the definitions from
Lecture 11 work. The third is the module `Parser` whose code is [here](#parser-module).
Expand All @@ -46,6 +49,7 @@ data Expr = Var Symbol
| App Expr Expr
| Lambda Symbol Expr deriving Eq
```
**For passing all BRUTE tests you still need the `import Hw3`!**

## Parser specification

Expand Down

0 comments on commit 4bc8cb1

Please sign in to comment.