her.esy.fun/src/posts/0010-Haskell-Now/error_basic.hs

5 lines
67 B
Haskell
Raw Normal View History

2019-12-23 09:56:47 +00:00
f :: Int -> Int -> Int
f x y = x*x + y*y
main = print (f 2.3 4.2)