
25 Nov
2001
25 Nov
'01
10:51 a.m.
it's an .lhs file
data Alumno = A { dni :: Integer, nombre :: String,nota::Float }
shf :: Alumno -> String shf alum = show (dni alum) ++ nombre alum ++ show (nota alum )
i don't wanna use this sentence: deriving Show i wanna use "my show function" but ... Here is the problem !!
instance Show a => Show (Alumno a) where show x = shf x
Thanks .
8624
Age (days ago)
8624
Last active (days ago)
0 comments
1 participants
participants (1)
-
Fwd