Skip to content

Fails to build under GHC 7.6.1 #4

Closed
nomeata opened this Issue Oct 20, 2012 · 1 comment

2 participants

@nomeata
nomeata commented Oct 20, 2012

Hi,

with GHC 7.6.1, Bits no longer imply Num and I get

[53 of 62] Compiling Numeric.Coalgebra.Geometric ( src/Numeric/Coalgebra/Geometric.hs, dist-ghc/build/Numeric/Coalgebra/Geometric.o )

src/Numeric/Coalgebra/Geometric.hs:125:12:
    Could not deduce (Num n) arising from the literal `1'
    from the context (Bits n, Group r)
      bound by the type signature for
                 m1powTimes :: (Bits n, Group r) => n -> r -> r
      at src/Numeric/Coalgebra/Geometric.hs:123:15-46
    Possible fix:
      add (Num n) to the context of
        the type signature for
          m1powTimes :: (Bits n, Group r) => n -> r -> r
    In the second argument of `(.&.)', namely `1'
    In the first argument of `(==)', namely `(n .&. 1)'
    In the expression: (n .&. 1) == 0
make: *** [build-ghc-stamp] Error 1
@ekmett ekmett added a commit that referenced this issue Oct 20, 2012
@ekmett GHC 7.6.1 compatibility (Issue #4) 6dcc0e1
@ekmett
Owner
ekmett commented Oct 20, 2012

Fixed.

@ekmett ekmett closed this Oct 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.