[jhc] A possible bug with constraints being perceived as multiparameter type classes

Brandon Allbery allbery.b at gmail.com
Tue Apr 21 13:38:26 UTC 2015


On Tue, Apr 21, 2015 at 9:26 AM, Artyom <yom at artyom.me> wrote:

>  $ Temp/jhc-0.8.2/jhc Temp/jhc1.hs
>
> jhc Temp/jhc1.hs
> jhc 0.8.2 (mydniquipepo-32)
> Finding Dependencies...
> Using Ho Cache: '/home/yom/.jhc/cache'
>
> Temp/jhc1.hs:1   - Error: Invalid Class. multiparameter classes not yet supported:
> (Num,[HsTyTuple [HsTyVar {hsTypeName = a},HsTyVar {hsTypeName = b}]])
>
> Am I misunderstanding something, or is it a legitimate bug?
>>

Looks multiparameter to me:

    instance ... => Num (T a b Int) where

with T ~ (,,). Which is what the second line of the error message is
telling you, more or less.

-- 
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://mail.haskell.org/pipermail/jhc/attachments/20150421/20c85a9c/attachment.html>


More information about the jhc mailing list