Fix Bits instance for GHC 7.6 #6

merged 1 commit into from Aug 13, 2012


None yet
3 participants

joeyadams commented Aug 13, 2012

This fixes an important warning when building under GHC 7.6 RC1:

Numeric/Natural/Internal.hs:44:10: Warning:
    No explicit method or default declaration for `popCount'
    In the instance declaration for `Bits Natural'

This is because the Num constraint was removed from the Bits typeclass, so popCount and a couple other methods can no longer have default implementations. That is, unless the DefaultSignatures extension is used; see ticket 7135.

This pull request passes (merged 40e1e97 into 8a01f4c).

@ekmett ekmett added a commit that referenced this pull request Aug 13, 2012

@ekmett ekmett Merge pull request #6 from joeyadams/fix-for-ghc-7.6
Fix Bits instance for GHC 7.6

@ekmett ekmett merged commit 8e3d8b3 into ekmett:master Aug 13, 2012

1 check passed

default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment