Re: [Haskell-beginners] No instance for Show arising from a use in “main” level
24 Aug
2016
24 Aug
'16
8:44 a.m.
Hi! Yes. Thanks I resolved my problem. The explanation is here: http://stackoverflow.com/questions/39112380/no-instance-for-show-arising-fro... 2016-08-23 20:23 GMT-04:00 Imants Cekusins <imantc@gmail.com>:
Hello Tatiana,
these signatures do not look good:
main :: (Show (IO J2s)) => IO()
test :: (Show (IO J2s)) => String -> IO()
testParser :: (Show (IO J2s)) => IO()
constraints are used to specify type variables. IO J2s looks like * (a fixed type).
what errors do you see without these constraints?
3617
Age (days ago)
3617
Last active (days ago)
0 comments
1 participants
participants (1)
-
T. Andrea Moruno Rodriguez