mortenbp/OpenGL — comment on commit 66957698c6dfee563a22d1868ab6cbb8402b34c3
File:  line 0
By dagit:

I thought about this more and GHC won't complain if you have "extra"
constraints. I further tested this in GHC by defining f x = x + 1 and
giving it the type (Num a, Read a) => a -> a. Read isn't needed/used
but it still type checks.

I'll accept your pull request.

Thanks!
Jason

On Wed, Feb 1, 2012 at 7:29 AM, mortenbp

wrote:
> On Tue, Jan 31, 2012 at 16:44, Jason Dagit
>
> wrote:
>> My mistake for looking at Haskell '98 and Haskell 2010 language standards. It seems that this was removed in this proposal: http://haskell.1045720.n5.nabble.com/Proposal-Remove-Show-and-Eq-superclasses-of-Num-td4808712.html
>>
>> I'll ask about GHC about this change making it into Haskell'. Does the "extra" Eq constraint compile with both versions of base that you mentioned? If so I will accept this patch.
>
> I don't have an "old" GHC installed right now. I'm leaving for FOSDEM
> soon, so I won't have time to test it until sometime next week.
>
> --
> Morten
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/mortenbp/OpenGL/commit/66957698c6dfee563a22d1868ab6cbb8402b34c3#commitcomment-922729