MFC/p1/Errortipos.hs
Carlos Galindo 38ce60f8b7 Practica 1
2018-10-15 19:13:06 +02:00

9 lines
163 B
Haskell

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