[Haskell-beginners] No instance for Show arising from a use in “main” level
T. Andrea Moruno Rodriguez
tatiana.moruno at gmail.com
Wed Aug 24 00:44:04 UTC 2016
Hi!
Yes.
Thanks I resolved my problem. The explanation is here:
http://stackoverflow.com/questions/39112380/no-instance-for-show-arising-from-a-use-in-main-level?noredirect=1#comment65572477_39112380
2016-08-23 20:23 GMT-04:00 Imants Cekusins <imantc at 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?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160823/b1d635c1/attachment.html>
More information about the Beginners
mailing list