I have two functions:
f1 :: Bool -> Int
f1 x
| x == True = 5
| x == False = 10
f2 :: Int -> Int
f2 x = x * 2
Since the output of f1 is the correct input for f2, how come
f2 f1 True
causes an error?
I didnt know what to tag so the tags might be inappropriate.