Skip to content

Commit

Permalink
Actually correct hpackification, Makefile edits
Browse files Browse the repository at this point in the history
  • Loading branch information
bitemyapp committed Feb 28, 2018
1 parent 7b09d61 commit 3395e8f
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 117 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
build: build-7.10
build:
stack build

build-7.10:
STACK_YAML="stack-7.10.yaml" stack build

build-8.0:
STACK_YAML="stack-8.0.yaml" stack build
build-tests:
stack build --test --no-run-tests

ghci:
stack ghci
Expand Down
76 changes: 37 additions & 39 deletions esqueleto.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--
-- see: https://github.com/sol/hpack
--
-- hash: e5ab42806c413de0b3f9c18b155779bf6d71f87bcfec2fda5c109bf2f4adb4a2
-- hash: 34b1b8836c9ae7acb038d0e808674ddb4c2ab696d37e5b117f61acad02ed6daf

name: esqueleto
version: 2.6.0
Expand Down Expand Up @@ -43,18 +43,19 @@ library
, text >=0.11 && <1.3
, time >=1.5.0.1 && <=1.8.0.2
, transformers >=0.2
, unliftio
, unordered-containers >=0.2
if impl(ghc >=8.0)
ghc-options: -Wall -Wno-redundant-constraints
else
ghc-options: -Wall
exposed-modules:
Database.Esqueleto
Database.Esqueleto.Internal.Language
Database.Esqueleto.Internal.Sql
Database.Esqueleto.MySQL
Database.Esqueleto.PostgreSQL
Database.Esqueleto.SQLite
Database.Esqueleto.Internal.Language
Database.Esqueleto.Internal.Sql
other-modules:
Database.Esqueleto.Internal.PersistentImport
Paths_esqueleto
Expand All @@ -67,29 +68,28 @@ test-suite mysql
test
ghc-options: -Wall
build-depends:
HUnit
, QuickCheck
, base
, conduit
base >=4.8 && <5.0
, blaze-html
, bytestring
, conduit >=1.3
, containers
, esqueleto
, hspec
, monad-control
, monad-logger
, mysql
, mysql-simple
, persistent
, persistent >=2.8.0 && <2.9
, persistent-mysql
, persistent-template
, resourcet
, text
, time
, transformers
, resourcet >=1.2
, tagged >=0.2
, text >=0.11 && <1.3
, time >=1.5.0.1 && <=1.8.0.2
, transformers >=0.2
, unliftio
, unordered-containers >=0.2
other-modules:
Common.Test
PostgreSQL.Test
SQLite.Test
Paths_esqueleto
default-language: Haskell2010

Expand All @@ -100,29 +100,28 @@ test-suite postgresql
test
ghc-options: -Wall
build-depends:
HUnit
, QuickCheck
, base
, conduit
base >=4.8 && <5.0
, blaze-html
, bytestring
, conduit >=1.3
, containers
, esqueleto
, hspec
, monad-control
, monad-logger
, persistent
, persistent >=2.8.0 && <2.9
, persistent-postgresql
, persistent-template
, postgresql-libpq
, postgresql-simple
, resourcet
, text
, time
, transformers
, resourcet >=1.2
, tagged >=0.2
, text >=0.11 && <1.3
, time >=1.5.0.1 && <=1.8.0.2
, transformers >=0.2
, unliftio
, unordered-containers >=0.2
other-modules:
Common.Test
MySQL.Test
SQLite.Test
Paths_esqueleto
default-language: Haskell2010

Expand All @@ -133,26 +132,25 @@ test-suite sqlite
test
ghc-options: -Wall
build-depends:
HUnit
, QuickCheck
, base
, conduit
base >=4.8 && <5.0
, blaze-html
, bytestring
, conduit >=1.3
, containers
, esqueleto
, hspec
, monad-control
, monad-logger
, persistent
, persistent >=2.8.0 && <2.9
, persistent-sqlite
, persistent-template
, resourcet
, text
, time
, transformers
, resourcet >=1.2
, tagged >=0.2
, text >=0.11 && <1.3
, time >=1.5.0.1 && <=1.8.0.2
, transformers >=0.2
, unliftio
, unordered-containers >=0.2
other-modules:
Common.Test
MySQL.Test
PostgreSQL.Test
Paths_esqueleto
default-language: Haskell2010
120 changes: 48 additions & 72 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,31 @@ copyright: (c) 2012-2016 Felipe Almeida Lessa
license: BSD3
homepage: https://github.com/bitemyapp/esqueleto
git: git://github.com/bitemyapp/esqueleto.git

dependencies:
- monad-logger
library:
source-dirs: src/
exposed-modules:
- Database.Esqueleto
- Database.Esqueleto.MySQL
- Database.Esqueleto.PostgreSQL
- Database.Esqueleto.SQLite
- Database.Esqueleto.Internal.Language
- Database.Esqueleto.Internal.Sql
dependencies:
- base >=4.8 && <5.0
- blaze-html
- bytestring
- text >=0.11 && <1.3
- persistent >=2.8.0 && <2.9
- transformers >=0.2
- unordered-containers >=0.2
- tagged >=0.2
- conduit >=1.3
- monad-logger
- persistent >=2.8.0 && <2.9
- resourcet >=1.2
- tagged >=0.2
- text >=0.11 && <1.3
- time >=1.5.0.1 && <=1.8.0.2
- blaze-html
- transformers >=0.2
- unliftio
- unordered-containers >=0.2

library:
source-dirs: src/
exposed-modules:
- Database.Esqueleto
- Database.Esqueleto.Internal.Language
- Database.Esqueleto.Internal.Sql
- Database.Esqueleto.MySQL
- Database.Esqueleto.PostgreSQL
- Database.Esqueleto.SQLite
when:
- condition: impl(ghc >=8.0)
then:
Expand All @@ -75,73 +77,47 @@ library:

tests:
mysql:
main: MySQL/Test.hs
main: 'MySQL/Test.hs'
source-dirs: test
ghc-options: -Wall
dependencies:
- base
- persistent
- transformers
- resourcet
- text
- conduit
- containers
- HUnit
- QuickCheck
- hspec
- monad-control
- time
- esqueleto
- mysql-simple
- mysql
- persistent-mysql
- persistent-template
- monad-control
- unliftio
- containers
- esqueleto
- hspec
- mysql-simple
- mysql
- persistent-mysql
- persistent-template
other-modules:
- Common.Test
- Paths_esqueleto

sqlite:
main: SQLite/Test.hs
source-dirs: test
ghc-options: -Wall
dependencies:
- base
- persistent
- transformers
- resourcet
- text
- conduit
- containers
- HUnit
- QuickCheck
- hspec
- monad-control
- time
- esqueleto
- persistent-sqlite
- persistent-template
- unliftio
- containers
- esqueleto
- hspec
- persistent-sqlite
- persistent-template
other-modules:
- Common.Test
- Paths_esqueleto

postgresql:
main: PostgreSQL/Test.hs
source-dirs: test
ghc-options: -Wall
dependencies:
- base
- persistent
- transformers
- resourcet
- text
- conduit
- containers
- HUnit
- QuickCheck
- hspec
- monad-control
- time
- esqueleto
- postgresql-simple
- postgresql-libpq
- persistent-postgresql
- persistent-template
- monad-control
- unliftio
- containers
- esqueleto
- hspec
- persistent-postgresql
- persistent-template
- postgresql-libpq
- postgresql-simple
other-modules:
- Common.Test
- Paths_esqueleto

0 comments on commit 3395e8f

Please sign in to comment.