Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pairing-0.4.1 #4758

Closed
jkachmar opened this issue Aug 9, 2019 · 1 comment
Closed

pairing-0.4.1 #4758

jkachmar opened this issue Aug 9, 2019 · 1 comment

Comments

@jkachmar
Copy link
Contributor

jkachmar commented Aug 9, 2019

pairing-0.4.1 fails to compile on the latest nightly with the following errors:

Build Log

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm<’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dm< @(Fr)
      In an equation for ‘<’: (<) = ghc-prim-0.5.3:GHC.Classes.$dm< @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm<=’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dm<= @(Fr)
      In an equation for ‘<=’:
          (<=) = ghc-prim-0.5.3:GHC.Classes.$dm<= @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm>’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dm> @(Fr)
      In an equation for ‘>’: (>) = ghc-prim-0.5.3:GHC.Classes.$dm> @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dm>=’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dm>= @(Fr)
      In an equation for ‘>=’:
          (>=) = ghc-prim-0.5.3:GHC.Classes.$dm>= @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dmmax’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dmmax @(Fr)
      In an equation for ‘max’:
          max = ghc-prim-0.5.3:GHC.Classes.$dmmax @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

src/Pairing/Fr.hs:28:10: error:
    • Overlapping instances for Ord Fr
        arising from a use of ‘ghc-prim-0.5.3:GHC.Classes.$dmmin’
      Matching instances:
        instance Ord (PrimeField p) -- Defined in ‘PrimeField’
        instance Ord Fr -- Defined at src/Pairing/Fr.hs:28:10
    • In the expression: ghc-prim-0.5.3:GHC.Classes.$dmmin @(Fr)
      In an equation for ‘min’:
          min = ghc-prim-0.5.3:GHC.Classes.$dmmin @(Fr)
      In the instance declaration for ‘Ord Fr’
   |
28 | instance Ord Fr where
   |          ^^^^^^

These instances were added to galois-field but the ones in pairing have not been deleted yet, as indicated by this comment.

jkachmar added a commit that referenced this issue Aug 9, 2019
@bergmark
Copy link
Member

bergmark commented Oct 29, 2019

Ping @sdiehl, same here that the package was disabled. Please file a PR if the package has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants