Skip to content

Commit

Permalink
Add cabal.project, mask protolude namespace clashes
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiehl committed Jul 15, 2020
1 parent 3c2c2e0 commit a3994a6
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 252 deletions.
6 changes: 6 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages: .

source-repository-package
type: git
location: https://github.com/adjoint-io/galois-field.git
tag: 4932bfa472f2756427e0cf75c5cbebae26405f40
45 changes: 17 additions & 28 deletions elliptic-curve.cabal
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
cabal-version: 1.12

-- This file has been generated from package.yaml by hpack version 0.31.2.
--
-- see: https://github.com/sol/hpack
--
-- hash: cd153de32e11244f897a72cbcfc0169c7ca4b88664a71ac709422e44e887d92d

cabal-version: 3.0
name: elliptic-curve
version: 0.3.1
synopsis: Elliptic curve library
Expand Down Expand Up @@ -168,8 +161,8 @@ library
, galois-field >=1 && <2
, groups >=0.4 && <0.5
, MonadRandom >=0.5 && <0.6
, protolude >=0.2 && <0.3
, QuickCheck >=2.13 && <2.14
, protolude >=0.3 && <0.4
, QuickCheck >=2.13 && <2.15
, text >=1.2 && <1.3
, wl-pprint-text >=1.2 && <1.3

Expand All @@ -179,7 +172,6 @@ test-suite elliptic-curve-tests
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_elliptic_curve
Test.Binary
Test.Curve
Test.Edwards
Expand Down Expand Up @@ -208,16 +200,16 @@ test-suite elliptic-curve-tests
TypeFamilyDependencies

ghc-options:
-freverse-errors -Wall -pgmL markdown-unlit -main-is Main
-freverse-errors -Wall -pgmL markdown-unlit

build-depends:
base >=4.10 && <5
, elliptic-curve
, galois-field >=1 && <2
, galois-field >=1.0 && <2
, groups >=0.4 && <0.5
, MonadRandom >=0.5 && <0.6
, protolude >=0.2 && <0.3
, QuickCheck >=2.13 && <2.14
, protolude >=0.3 && <0.4
, QuickCheck >=2.13 && <2.15
, tasty >=1.2 && <1.3
, tasty-hunit >=0.10 && <0.11
, tasty-quickcheck >=0.10 && <0.11
Expand All @@ -232,7 +224,6 @@ test-suite example-test
other-modules:
DiffieHellman
Example
Paths_elliptic_curve

hs-source-dirs: examples
default-extensions:
Expand All @@ -258,11 +249,11 @@ test-suite example-test
build-depends:
base >=4.10 && <5
, elliptic-curve
, galois-field >=1 && <2
, galois-field >=1.0 && <2
, groups >=0.4 && <0.5
, MonadRandom >=0.5 && <0.6
, protolude >=0.2 && <0.3
, QuickCheck >=2.13 && <2.14
, protolude >=0.3 && <0.4
, QuickCheck >=2.13 && <2.15
, text >=1.2 && <1.3
, wl-pprint-text >=1.2 && <1.3

Expand All @@ -271,7 +262,6 @@ test-suite example-test
test-suite readme-test
type: exitcode-stdio-1.0
main-is: README.lhs
other-modules: Paths_elliptic_curve
default-extensions:
NoImplicitPrelude
DataKinds
Expand All @@ -297,12 +287,12 @@ test-suite readme-test
build-depends:
base >=4.10 && <5
, elliptic-curve
, galois-field >=1 && <2
, galois-field >=1.0 && <2
, groups >=0.4 && <0.5
, markdown-unlit >=0.5 && <0.6
, MonadRandom >=0.5 && <0.6
, protolude >=0.2 && <0.3
, QuickCheck >=2.13 && <2.14
, protolude >=0.3 && <0.4
, QuickCheck >=2.13 && <2.15
, text >=1.2 && <1.3
, wl-pprint-text >=1.2 && <1.3

Expand All @@ -317,7 +307,6 @@ benchmark elliptic-curve-benchmarks
Bench.Edwards
Bench.Montgomery
Bench.Weierstrass
Paths_elliptic_curve

hs-source-dirs: bench
default-extensions:
Expand All @@ -340,17 +329,17 @@ benchmark elliptic-curve-benchmarks
TypeFamilyDependencies

ghc-options:
-freverse-errors -Wall -pgmL markdown-unlit -main-is Main
-freverse-errors -Wall -pgmL markdown-unlit

build-depends:
base >=4.10 && <5
, criterion >=1.5 && <1.6
, elliptic-curve
, galois-field >=1 && <2
, galois-field >=1.0 && <2
, groups >=0.4 && <0.5
, MonadRandom >=0.5 && <0.6
, protolude >=0.2 && <0.3
, QuickCheck >=2.13 && <2.14
, protolude >=0.3 && <0.4
, QuickCheck >=2.13 && <2.15
, text >=1.2 && <1.3
, wl-pprint-text >=1.2 && <1.3

Expand Down
2 changes: 1 addition & 1 deletion generate/Generate/Binary/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Generate.Binary.Generate
( prettyGenerate
) where

import Protolude
import Protolude hiding (toLower)

import Data.Text (toLower)
import Text.PrettyPrint.Leijen.Text
Expand Down
2 changes: 1 addition & 1 deletion generate/Generate/Edwards/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Generate.Edwards.Generate
( prettyGenerate
) where

import Protolude
import Protolude hiding (toLower)

import Data.Text (toLower)
import Text.PrettyPrint.Leijen.Text
Expand Down
2 changes: 1 addition & 1 deletion generate/Generate/Montgomery/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Generate.Montgomery.Generate
( prettyGenerate
) where

import Protolude
import Protolude hiding (toLower)

import Data.Text (toLower)
import Text.PrettyPrint.Leijen.Text
Expand Down
2 changes: 1 addition & 1 deletion generate/Generate/Weierstrass/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Generate.Weierstrass.Generate
( prettyGenerate
) where

import Protolude
import Protolude hiding (toLower)

import Data.Text (toLower)
import Text.PrettyPrint.Leijen.Text
Expand Down
200 changes: 0 additions & 200 deletions package.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
resolver: lts-14.7
resolver: lts-16.0
extra-deps:
- bitvec-1.0.2.0
- galois-field-1.0.1
- poly-0.3.2.0
- semirings-0.5.1
- poly-0.4.0.0
- semirings-0.5.3
- mod-0.1.0.0
- protolude-0.3.0
- QuickCheck-2.14@sha256:3f536a4b86bef7ec39025f04ef8d76c5ac5a78ba0b42e660b25d0a8f9c811045,7004
- git: https://github.com/adjoint-io/galois-field
commit: 4932bfa472f2756427e0cf75c5cbebae26405f40
Loading

0 comments on commit a3994a6

Please sign in to comment.