X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=exercises%2Fassignment5.mdwn;h=a74da85a2c47e57768ffe4faced717c96d5e4c8e;hp=73889482c1999d37564b214af2e9419da50d9d7f;hb=7888d341776f23849c60cd82ca816ed13e5bc9c2;hpb=ff9ff96c9806b28eaa3b443df3a47d74da0ec089;ds=inline diff --git a/exercises/assignment5.mdwn b/exercises/assignment5.mdwn index 73889482..a74da85a 100644 --- a/exercises/assignment5.mdwn +++ b/exercises/assignment5.mdwn @@ -329,7 +329,9 @@ any type `α`, as long as your function is of type `α -> α` and you have a bas -- Or this: let sysf_true = (\y n -> y) :: Sysf_bool a - :set -XExplicitForAll + Note that in both OCaml and Haskell code, the generalization `∀α` on the free type variable `α` is implicit. If you really want to, you can supply it explicitly in Haskell by saying: + + :set -XExplicitForAll let { sysf_true :: forall a. Sysf_bool a; ... } -- or let { sysf_true :: forall a. a -> a -> a; ... }