[Haskell-cafe] To "instance C D", GHCI responds that C "is applied to too many type arguments".

Jeffrey Brown jeffbrown.the at gmail.com
Sat Jun 13 07:03:09 UTC 2015


jeff at jeffLenovUbu:~$ ghci -XNullaryTypeClasses
GHCi, version 7.8.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> class C
Prelude> data D = DConstructor
Prelude> instance C D

<interactive>:4:10:
    ‘C’ is applied to too many type arguments
    In the instance declaration for ‘C D’
Prelude>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150613/5e1dd701/attachment.html>


More information about the Haskell-Cafe mailing list