MFC/p1/Errortipos.hs

10 lines
163 B
Haskell
Raw Normal View History

2018-10-15 19:13:06 +02:00
module Errortipos where
-- Causa error de tipos
-- main = f (0, 'a')
-- Expresion corregida
main = f('a', 0)
f :: (Char, Int) -> String
f (c, i) = [c] ++ show i