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.
712 B
712 B
Chapter Excercises
Multiple choice
- (c)
- (b)
- (a)
- (c)
- (a)
Does it typecheck?
see src/typecheck.hs
Given a datatype declaration, what can we do?
- Will not type check.
"chases"
is aString
not aRocks
andTrue
is of typeBool
, notYeah
- Will typecheck.
- Will typecheck.
- Will not typecheck, because
Papu
is not an instance ofOrd
Match the types
- Can't be substituted
- Can't be substituted
- Can be substituted
- Can be substituted
- Can be substituted
- Can be substituted
- Can't be substituted
- Can't be substituted
- Can be substituted
- Can be substituted
- Can't be substituted
Type-Kwon-Do Two: Electric Typealoo
see src/typekwondo.hs