Re: [Haskell-beginners] No instance for Show arising from a use in “main” level

23 Aug
2016
23 Aug
'16
8:44 p.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
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?
3191
Age (days ago)
3191
Last active (days ago)
0 comments
1 participants
participants (1)
-
T. Andrea Moruno Rodriguez