Gabriella439 / Haskell-Morte-Library

A bare-bones calculus-of-constructions
BSD 3-Clause "New" or "Revised" License
373 stars 25 forks source link

Error in the documentation #82

Closed poe84it closed 6 years ago

poe84it commented 6 years ago

In the Doc on hackage.haskell.org, in the Simple types section, when shown how to pattern match any T type with matchT, I think there is an error. This:

matchT String Int Bool r t

should be so:

matchT String Int Bool t r

because matchT is defined as:

(a : ) -> (b : ) -> (c : ) -> (t : forall (r : ) -> r -> (a -> r) -> (b -> c -> r) -> r) -> t

and not as:

(a : ) -> (b : ) -> (c : ) -> (r : ) -> (t : forall (r : *) -> r -> (a -> r) -> (b -> c -> r) -> r) -> t r

I'm wrong?

Gabriella439 commented 6 years ago

@poe84it: You're correct. It should be matchT String Int Bool t r