You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
434 B
434 B
Chapter Excercises
Can a valid Functor be written?
- No, Bool is of kind
*
- Yes, see src/chptexc.hs
- Yes, see src/chptexc.hs
- The first f in
outF :: f (Mu f)
implies that f is of kind* -> *
.Mu
takes this f to return a type, so it's kind is(* -> *) -> *
. This means we can't make a Functor from this as this is not* -> *
- No, D is of kind
*
Rearrange
see src/chptexc.hs
Write
see src/chptexc.hs