Haskell: Why is it saying my function type is off?
- by linkmaster03
I wrote a little Haskell program to find the area of a triangle, primarily to practice custom types, but it keeps throwing the following error on compile:
areafinder.hs:7:4:
Couldn't match expected type 'Triangle' against inferred type 'm b'
In a stmt of a 'do' expression: putStr "Base: "
In the expression:
do { putStr "Base:…