Hpackification

This commit is contained in:
Chris Allen 2018-02-28 13:19:41 -06:00
parent 632f4408df
commit 7b09d61bc1
2 changed files with 270 additions and 135 deletions

View File

@ -1,170 +1,158 @@
name: esqueleto -- This file has been generated from package.yaml by hpack version 0.20.0.
version: 2.6.0 --
synopsis: Type-safe EDSL for SQL queries on persistent backends. -- see: https://github.com/sol/hpack
homepage: https://github.com/bitemyapp/esqueleto --
license: BSD3 -- hash: e5ab42806c413de0b3f9c18b155779bf6d71f87bcfec2fda5c109bf2f4adb4a2
license-file: LICENSE
author: Felipe Lessa name: esqueleto
maintainer: cma@bitemyapp.com version: 2.6.0
copyright: (c) 2012-2016 Felipe Almeida Lessa synopsis: Type-safe EDSL for SQL queries on persistent backends.
category: Database description: @esqueleto@ is a bare bones, type-safe EDSL for SQL queries that works with unmodified @persistent@ SQL backends. Its language closely resembles SQL, so you don't have to learn new concepts, just new syntax, and it's fairly easy to predict the generated SQL and optimize it for your backend. Most kinds of errors committed when writing SQL are caught as compile-time errors---although it is possible to write type-checked @esqueleto@ queries that fail at runtime.
build-type: Simple .
cabal-version: >=1.8 @persistent@ is a library for type-safe data serialization. It has many kinds of backends, such as SQL backends (@persistent-mysql@, @persistent-postgresql@, @persistent-sqlite@) and NoSQL backends (@persistent-mongoDB@). While @persistent@ is a nice library for storing and retrieving records, including with filters, it does not try to support some of the features that are specific to SQL backends. In particular, @esqueleto@ is the recommended library for type-safe @JOIN@s on @persistent@ SQL backends. (The alternative is using raw SQL, but that's error prone and does not offer any composability.)
description: .
@esqueleto@ is a bare bones, type-safe EDSL for SQL queries Currently, @SELECT@s, @UPDATE@s, @INSERT@s and @DELETE@s are supported. Not all SQL features are available, but most of them can be easily added (especially functions), so please open an issue or send a pull request if you need anything that is not covered by @esqueleto@ on <https://github.com/bitemyapp/esqueleto>.
that works with unmodified @persistent@ SQL backends. Its .
language closely resembles SQL, so you don't have to learn The name of this library means \"skeleton\" in Portuguese and contains all three SQL letters in the correct order =). It was inspired by Scala's Squeryl but created from scratch.
new concepts, just new syntax, and it's fairly easy to category: Database
predict the generated SQL and optimize it for your backend. homepage: https://github.com/bitemyapp/esqueleto
Most kinds of errors committed when writing SQL are caught as author: Felipe Lessa
compile-time errors---although it is possible to write maintainer: cma@bitemyapp.com
type-checked @esqueleto@ queries that fail at runtime. copyright: (c) 2012-2016 Felipe Almeida Lessa
. license: BSD3
@persistent@ is a library for type-safe data serialization. It license-file: LICENSE
has many kinds of backends, such as SQL backends build-type: Simple
(@persistent-mysql@, @persistent-postgresql@, cabal-version: >= 1.10
@persistent-sqlite@) and NoSQL backends (@persistent-mongoDB@).
While @persistent@ is a nice library for storing and retrieving
records, including with filters, it does not try to support
some of the features that are specific to SQL backends. In
particular, @esqueleto@ is the recommended library for
type-safe @JOIN@s on @persistent@ SQL backends. (The
alternative is using raw SQL, but that's error prone and does
not offer any composability.)
.
Currently, @SELECT@s, @UPDATE@s, @INSERT@s and @DELETE@s are supported.
Not all SQL features are available, but most of them can be easily added
(especially functions), so please open an issue or send a pull request if
you need anything that is not covered by @esqueleto@ on
<https://github.com/bitemyapp/esqueleto>.
.
The name of this library means \"skeleton\" in Portuguese and
contains all three SQL letters in the correct order =). It was
inspired by Scala's Squeryl but created from scratch.
source-repository head source-repository head
type: git type: git
location: git://github.com/bitemyapp/esqueleto.git location: git://github.com/bitemyapp/esqueleto.git
library library
exposed-modules: hs-source-dirs:
Database.Esqueleto src/
Database.Esqueleto.MySQL
Database.Esqueleto.PostgreSQL
Database.Esqueleto.SQLite
Database.Esqueleto.Internal.Language
Database.Esqueleto.Internal.Sql
other-modules:
Database.Esqueleto.Internal.PersistentImport
build-depends: build-depends:
base >= 4.8 && < 5.0 base >=4.8 && <5.0
, bytestring
, text >= 0.11 && < 1.3
, persistent >= 2.8.0 && < 2.9
, transformers >= 0.2
, unordered-containers >= 0.2
, tagged >= 0.2
, monad-logger
, conduit >= 1.3
, resourcet >= 1.2
, time >= 1.5.0.1 && <= 1.8.0.2
, blaze-html , blaze-html
hs-source-dirs: src/ , bytestring
if impl(ghc >= 8.0) , 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
, transformers >=0.2
, unordered-containers >=0.2
if impl(ghc >=8.0)
ghc-options: -Wall -Wno-redundant-constraints ghc-options: -Wall -Wno-redundant-constraints
else else
ghc-options: -Wall ghc-options: -Wall
exposed-modules:
Database.Esqueleto
test-suite postgresql Database.Esqueleto.MySQL
type: exitcode-stdio-1.0 Database.Esqueleto.PostgreSQL
ghc-options: -Wall Database.Esqueleto.SQLite
hs-source-dirs: test Database.Esqueleto.Internal.Language
other-modules: Common.Test Database.Esqueleto.Internal.Sql
main-is: PostgreSQL/Test.hs other-modules:
build-depends: Database.Esqueleto.Internal.PersistentImport
-- Library dependencies used on the tests. No need to Paths_esqueleto
-- specify versions since they'll use the same as above. default-language: Haskell2010
base, persistent, transformers, resourcet, text
-- Test-only dependencies
, conduit
, containers
, HUnit
, QuickCheck
, hspec
, monad-control
, time
-- This library
, esqueleto
, postgresql-simple
, postgresql-libpq
, persistent-postgresql
-- , persistent-sqlite >= 2.8.0
, persistent-template
, monad-control
, monad-logger
, unliftio
test-suite mysql test-suite mysql
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
ghc-options: -Wall main-is: MySQL/Test.hs
hs-source-dirs: test hs-source-dirs:
other-modules: Common.Test test
main-is: MySQL/Test.hs ghc-options: -Wall
build-depends: build-depends:
-- Library dependencies used on the tests. No need to HUnit
-- specify versions since they'll use the same as above. , QuickCheck
base, persistent, transformers, resourcet, text , base
-- Test-only dependencies
, conduit , conduit
, containers , containers
, HUnit , esqueleto
, QuickCheck
, hspec , hspec
, monad-control , monad-control
, time , monad-logger
-- This library
, esqueleto
, mysql-simple
, mysql , mysql
, mysql-simple
, persistent
, persistent-mysql , persistent-mysql
, persistent-template , persistent-template
, resourcet
, text
, time
, transformers
, unliftio
other-modules:
Common.Test
PostgreSQL.Test
SQLite.Test
Paths_esqueleto
default-language: Haskell2010
test-suite postgresql
type: exitcode-stdio-1.0
main-is: PostgreSQL/Test.hs
hs-source-dirs:
test
ghc-options: -Wall
build-depends:
HUnit
, QuickCheck
, base
, conduit
, containers
, esqueleto
, hspec
, monad-control , monad-control
, monad-logger , monad-logger
, persistent
, persistent-postgresql
, persistent-template
, postgresql-libpq
, postgresql-simple
, resourcet
, text
, time
, transformers
, unliftio , unliftio
other-modules:
Common.Test
MySQL.Test
SQLite.Test
Paths_esqueleto
default-language: Haskell2010
test-suite sqlite test-suite sqlite
type: exitcode-stdio-1.0 type: exitcode-stdio-1.0
ghc-options: -Wall main-is: SQLite/Test.hs
hs-source-dirs: test hs-source-dirs:
other-modules: Common.Test test
main-is: SQLite/Test.hs ghc-options: -Wall
build-depends: build-depends:
-- Library dependencies used on the tests. No need to HUnit
-- specify versions since they'll use the same as above. , QuickCheck
base, persistent, transformers, resourcet, text , base
-- Test-only dependencies
, conduit , conduit
, containers , containers
, HUnit , esqueleto
, QuickCheck
, hspec , hspec
, monad-control , monad-control
, time , monad-logger
, persistent
-- This library
, esqueleto
, persistent-sqlite , persistent-sqlite
, persistent-template , persistent-template
, monad-logger , resourcet
, text
, time
, transformers
, unliftio , unliftio
other-modules:
Common.Test
MySQL.Test
PostgreSQL.Test
Paths_esqueleto
default-language: Haskell2010

147
package.yaml Normal file
View File

@ -0,0 +1,147 @@
name: esqueleto
version: '2.6.0'
synopsis: Type-safe EDSL for SQL queries on persistent backends.
description: ! '@esqueleto@ is a bare bones, type-safe EDSL for SQL queries
that works with unmodified @persistent@ SQL backends. Its
language closely resembles SQL, so you don''t have to learn
new concepts, just new syntax, and it''s fairly easy to
predict the generated SQL and optimize it for your backend.
Most kinds of errors committed when writing SQL are caught as
compile-time errors---although it is possible to write
type-checked @esqueleto@ queries that fail at runtime.
@persistent@ is a library for type-safe data serialization. It
has many kinds of backends, such as SQL backends
(@persistent-mysql@, @persistent-postgresql@,
@persistent-sqlite@) and NoSQL backends (@persistent-mongoDB@).
While @persistent@ is a nice library for storing and retrieving
records, including with filters, it does not try to support
some of the features that are specific to SQL backends. In
particular, @esqueleto@ is the recommended library for
type-safe @JOIN@s on @persistent@ SQL backends. (The
alternative is using raw SQL, but that''s error prone and does
not offer any composability.)
Currently, @SELECT@s, @UPDATE@s, @INSERT@s and @DELETE@s are supported.
Not all SQL features are available, but most of them can be easily added
(especially functions), so please open an issue or send a pull request if
you need anything that is not covered by @esqueleto@ on
<https://github.com/bitemyapp/esqueleto>.
The name of this library means \"skeleton\" in Portuguese and
contains all three SQL letters in the correct order =). It was
inspired by Scala''s Squeryl but created from scratch.'
category: Database
author: Felipe Lessa
maintainer: cma@bitemyapp.com
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
- 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
- resourcet >=1.2
- time >=1.5.0.1 && <=1.8.0.2
- blaze-html
when:
- condition: impl(ghc >=8.0)
then:
ghc-options:
- -Wall
- -Wno-redundant-constraints
else:
ghc-options: -Wall
tests:
mysql:
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
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
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