Haskell/Solutions/Type basics
Jump to navigation
Jump to search
Exercises 


 "H" is a
String
with just one element.  'Hello World' is invalid because
Char
s consist of only one character.
Exercises 

Finding types for functions is a basic Haskell skill that you should become very familiar with. What are the types of the following functions?
For any functions hereafter involving numbers, you can just assume the numbers are Ints.

negate :: Int > Int
 :: Bool > Bool > Bool
monthLength :: Bool > Int > Int
And in the second round:
f :: Bool > Bool > Bool
g :: Int > Int