mirror of
https://github.com/sdiehl/write-you-a-haskell.git
synced 2024-07-14 15:01:23 +03:00
Merge pull request #91 from tommythorn/master
Spotted a couple of typos
This commit is contained in:
commit
204747f2ff
@ -1348,7 +1348,7 @@ The omega combinator will not pass the occurs check.
|
||||
|
||||
```haskell
|
||||
Poly> \x -> x x
|
||||
Cannot construct the the infinite type: a = a -> b
|
||||
Cannot construct the infinite type: a = a -> b
|
||||
```
|
||||
|
||||
The file ``test.ml`` provides a variety of tests of the little interpreter. For
|
||||
|
@ -193,7 +193,7 @@ tokens :-
|
||||
Happy
|
||||
-----
|
||||
|
||||
Using Happy and our previosly defind lexer we'll write down the production rules
|
||||
Using Happy and our previously defined lexer we'll write down the production rules
|
||||
for our simple untyped lambda calculus.
|
||||
|
||||
We start by defining a ``Syntax`` module where we define the AST we'll generate
|
||||
|
@ -62,7 +62,7 @@ instance Show TypeError where
|
||||
]
|
||||
show (InfiniteType (TV a) la b) =
|
||||
concat [
|
||||
"Cannot construct the the infinite type: "
|
||||
"Cannot construct the infinite type: "
|
||||
, a
|
||||
, " = "
|
||||
, pptype b
|
||||
|
Loading…
Reference in New Issue
Block a user