ЗП
Size: a a a
ЗП
DB
baz n = (+ n)— ok
foo :: Int -> Int
foo = baz 5
bar :: Float -> Float
bar = baz 5
baz = (+)—
foo :: Int -> Int
foo = baz 5
bar :: Float -> Float
bar = baz 5
• Couldn't match type ‘Int’ with ‘Float’
Expected type: Float -> Float
Actual type: Int -> Int
• In the expression: baz 5
In an equation for ‘bar’: bar = baz 5
KV
baz n = (+ n)— ok
foo :: Int -> Int
foo = baz 5
bar :: Float -> Float
bar = baz 5
baz = (+)—
foo :: Int -> Int
foo = baz 5
bar :: Float -> Float
bar = baz 5
• Couldn't match type ‘Int’ with ‘Float’
Expected type: Float -> Float
Actual type: Int -> Int
• In the expression: baz 5
In an equation for ‘bar’: bar = baz 5
DB
KV
KV
JS
KV
NI
AA
NI
MK
AA
MK
AA
MK
MK
MK
YP
MK