Posts by Daniel Moreira • 33 points
1 post
-
3
votes1
answer54
viewsQ: Why doesn’t this simple code in Haskell compile?
I’m studying Haskell, and I don’t understand why this code doesn’t compile: foo :: Int -> Double -> Double foo a b = a+b The error message is: Couldn't match expected type `Double' with actual…
haskellasked Daniel Moreira 33