Skip to content

Commit

Permalink
Update build
Browse files Browse the repository at this point in the history
  • Loading branch information
sdiehl committed Jul 15, 2020
1 parent 7977f4c commit 9e3fd02
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 282 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-16.04
strategy:
matrix:
ghc: ["8.8.1", "8.6.5", "8.6.4", "8.6.3", "8.6.2"]
ghc: ["8.10.1", "8.8.1", "8.6.5", "8.6.4", "8.6.3", "8.6.2"]
cabal: ["3.0"]

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ jobs:
matrix:
os: [ubuntu-latest, macOS-latest]
plan:
- { build: stack, resolver: "lts-14" } # ghc-8.6.5
- { build: stack, resolver: "lts-15" } # ghc-8.8.2
- { build: stack, resolver: "lts-14" }
- { build: stack, resolver: "lts-15" }
- { build: stack, resolver: "lts-16" }
#- { build: stack, resolver: "nightly" }
include: []
exclude:
Expand Down
43 changes: 0 additions & 43 deletions cloudbuild.yaml

This file was deleted.

88 changes: 0 additions & 88 deletions package.yaml

This file was deleted.

189 changes: 46 additions & 143 deletions pairing.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: 075b86ab510717df4b4541ad3c6652acc7d449010ebfe946f4f7c9d58205a186

cabal-version: 3.0
name: pairing
version: 1.1.0
synopsis: Bilinear pairings
Expand All @@ -25,57 +18,18 @@ source-repository head
type: git
location: https://github.com/adjoint-io/pairing

library
exposed-modules:
Data.Pairing
Data.Pairing.Ate
Data.Pairing.BLS12381
Data.Pairing.BN254
Data.Pairing.BN254A
Data.Pairing.BN254B
Data.Pairing.BN254C
Data.Pairing.BN254D
Data.Pairing.BN462
Data.Pairing.Hash

other-modules: Paths_pairing
hs-source-dirs: src
default-extensions:
NoImplicitPrelude
ConstraintKinds
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
OverloadedLists
OverloadedStrings
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
TypeFamilyDependencies

ghc-options: -freverse-errors -O2 -Wall
common shared-dependencies
build-depends:
base >=4.10 && <5
, bytestring >=0.10.8 && <0.11
, elliptic-curve >=0.3 && <0.4
, errors >=2.3.0 && <2.4
, base >=4.10 && <5
, bytestring ^>=0.10.8
, elliptic-curve ^>=0.3
, errors ^>=2.3.0
, galois-field >=1.0.2 && <2.0
, groups >=0.4.1 && <0.5
, MonadRandom >=0.5.1 && <0.6
, protolude >=0.2 && <0.3
, tasty-quickcheck >=0.10.1 && <0.11

default-language: Haskell2010
, groups ^>=0.4.1
, MonadRandom ^>=0.5.1
, protolude >=0.2 && <0.4
, tasty-quickcheck ^>=0.10.1

test-suite example-tests
type: exitcode-stdio-1.0
main-is: Example.hs
other-modules: Paths_pairing
default-extensions:
NoImplicitPrelude
ConstraintKinds
Expand All @@ -94,26 +48,36 @@ test-suite example-tests
ScopedTypeVariables
TypeFamilyDependencies

ghc-options: -freverse-errors -O2 -Wall
build-depends:
base >=4.10 && <5
, bytestring >=0.10.8 && <0.11
, elliptic-curve >=0.3 && <0.4
, errors >=2.3.0 && <2.4
, galois-field >=1.0.2 && <2.0
, groups >=0.4.1 && <0.5
, MonadRandom >=0.5.1 && <0.6
, pairing
, protolude >=0.2 && <0.3
, tasty-quickcheck >=0.10.1 && <0.11
library
import: shared-dependencies
exposed-modules:
Data.Pairing
Data.Pairing.Ate
Data.Pairing.BLS12381
Data.Pairing.BN254
Data.Pairing.BN254A
Data.Pairing.BN254B
Data.Pairing.BN254C
Data.Pairing.BN254D
Data.Pairing.BN462
Data.Pairing.Hash

hs-source-dirs: src
ghc-options: -freverse-errors -O2 -Wall
default-language: Haskell2010

default-language: Haskell2010
test-suite example-tests
import: shared-dependencies
type: exitcode-stdio-1.0
main-is: Example.hs
ghc-options: -freverse-errors -O2 -Wall
default-language: Haskell2010

test-suite pairing-tests
type: exitcode-stdio-1.0
main-is: Main.hs
import: shared-dependencies
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Paths_pairing
Test.BLS12381
Test.BN254
Test.BN254A
Expand All @@ -125,83 +89,22 @@ test-suite pairing-tests
Test.Field
Test.Pairing

hs-source-dirs: test
default-extensions:
NoImplicitPrelude
ConstraintKinds
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
OverloadedLists
OverloadedStrings
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
TypeFamilyDependencies

ghc-options: -freverse-errors -O2 -Wall -main-is Main
build-depends:
base >=4.10 && <5
, bytestring >=0.10.8 && <0.11
, elliptic-curve >=0.3 && <0.4
, errors >=2.3.0 && <2.4
, galois-field >=1.0.2 && <2.0
, groups >=0.4.1 && <0.5
, MonadRandom >=0.5.1 && <0.6
, pairing
, protolude >=0.2 && <0.3
, QuickCheck
, quickcheck-instances
, tasty
, tasty-hunit
, tasty-quickcheck

default-language: Haskell2010
hs-source-dirs: test
ghc-options: -freverse-errors -O2 -Wall -main-is Main
default-language: Haskell2010

benchmark pairing-benchmarks
type: exitcode-stdio-1.0
main-is: Main.hs
import: shared-dependencies
type: exitcode-stdio-1.0
main-is: Main.hs
other-modules:
Bench.Hash
Bench.Pairing
Paths_pairing

hs-source-dirs: bench
default-extensions:
NoImplicitPrelude
ConstraintKinds
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
OverloadedLists
OverloadedStrings
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
TypeFamilyDependencies

ghc-options: -freverse-errors -O2 -Wall -main-is Main
hs-source-dirs: bench
ghc-options: -freverse-errors -O2 -Wall -main-is Main
build-depends:
base >=4.10 && <5
, bytestring >=0.10.8 && <0.11
, criterion
, elliptic-curve >=0.3 && <0.4
, errors >=2.3.0 && <2.4
, galois-field >=1.0.2 && <2.0
, groups >=0.4.1 && <0.5
, MonadRandom >=0.5.1 && <0.6
, criterion ^>=1.5
, pairing
, protolude >=0.2 && <0.3
, tasty-quickcheck >=0.10.1 && <0.11

default-language: Haskell2010
default-language: Haskell2010
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-14.16
resolver: lts-16.0
extra-deps:
- elliptic-curve-0.3.0
- galois-field-1.0.2
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ packages:
hackage: QuickCheck-2.13.2
snapshots:
- completed:
size: 524804
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/14/16.yaml
sha256: 4d1519a4372d051d47a5eae2241cf3fb54e113d7475f89707ddb6ec06add2888
original: lts-14.16
size: 531237
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/0.yaml
sha256: 210e15b7043e2783115afe16b0d54914b1611cdaa73f3ca3ca7f8e0847ff54e5
original: lts-16.0

0 comments on commit 9e3fd02

Please sign in to comment.