[Haskell-cafe] context deduction in GHC
Brandon Allbery
allbery.b at gmail.com
Tue Sep 30 18:11:31 UTC 2014
On Tue, Sep 30, 2014 at 1:52 PM, Doug McIlroy <doug at cs.dartmouth.edu> wrote:
> Ghci complains, "Could not deduce (Show a) arising from
> the superclasses of an instance declaration from the
> context (Num a)". Yet Show is a superclass of Num.
> Hugs accepts the code.
>
Show used to be a superclass of Num. It's not in current ghc, and will
probably be removed from the next version of the language standard.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140930/489482e1/attachment.html>
More information about the Haskell-Cafe
mailing list