-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to cabal file for cabal.project builds
- Loading branch information
1 parent
7b7717b
commit aa07462
Showing
3 changed files
with
155 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ | |
.cabal-sandbox/ | ||
cabal.sandbox.config | ||
.hspec-failures | ||
esqueleto.cabal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
cabal-version: 1.12 | ||
|
||
name: esqueleto | ||
version: 3.0.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 | ||
homepage: https://github.com/bitemyapp/esqueleto | ||
author: Felipe Lessa | ||
maintainer: [email protected] | ||
copyright: (c) 2012-2016 Felipe Almeida Lessa | ||
license: BSD3 | ||
license-file: LICENSE | ||
build-type: Simple | ||
extra-source-files: | ||
README.md | ||
changelog.md | ||
|
||
source-repository head | ||
type: git | ||
location: git://github.com/bitemyapp/esqueleto.git | ||
|
||
library | ||
exposed-modules: | ||
Database.Esqueleto | ||
Database.Esqueleto.Internal.Language | ||
Database.Esqueleto.Internal.Sql | ||
Database.Esqueleto.MySQL | ||
Database.Esqueleto.PostgreSQL | ||
Database.Esqueleto.SQLite | ||
other-modules: | ||
Database.Esqueleto.Internal.Internal | ||
Database.Esqueleto.Internal.PersistentImport | ||
Paths_esqueleto | ||
hs-source-dirs: | ||
src/ | ||
build-depends: | ||
base >=4.8 && <5.0 | ||
, blaze-html | ||
, bytestring | ||
, conduit >=1.3 | ||
, monad-logger | ||
, persistent >=2.8.0 && <2.11 | ||
, 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 | ||
if impl(ghc >=8.0) | ||
ghc-options: -Wall -Wno-redundant-constraints | ||
else | ||
ghc-options: -Wall | ||
default-language: Haskell2010 | ||
|
||
test-suite mysql | ||
type: exitcode-stdio-1.0 | ||
main-is: MySQL/Test.hs | ||
other-modules: | ||
Common.Test | ||
Paths_esqueleto | ||
hs-source-dirs: | ||
test | ||
ghc-options: -Wall | ||
build-depends: | ||
base >=4.8 && <5.0 | ||
, blaze-html | ||
, bytestring | ||
, conduit >=1.3 | ||
, containers | ||
, esqueleto | ||
, hspec | ||
, monad-logger | ||
, mysql | ||
, mysql-simple | ||
, persistent >=2.8.0 && <2.11 | ||
, persistent-mysql | ||
, persistent-template | ||
, 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 | ||
default-language: Haskell2010 | ||
|
||
test-suite postgresql | ||
type: exitcode-stdio-1.0 | ||
main-is: PostgreSQL/Test.hs | ||
other-modules: | ||
Common.Test | ||
Paths_esqueleto | ||
hs-source-dirs: | ||
test | ||
ghc-options: -Wall | ||
build-depends: | ||
base >=4.8 && <5.0 | ||
, blaze-html | ||
, bytestring | ||
, conduit >=1.3 | ||
, containers | ||
, esqueleto | ||
, hspec | ||
, monad-logger | ||
, persistent >=2.8.0 && <2.11 | ||
, persistent-postgresql | ||
, persistent-template | ||
, postgresql-libpq | ||
, postgresql-simple | ||
, 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 | ||
default-language: Haskell2010 | ||
|
||
test-suite sqlite | ||
type: exitcode-stdio-1.0 | ||
main-is: SQLite/Test.hs | ||
other-modules: | ||
Common.Test | ||
Paths_esqueleto | ||
hs-source-dirs: | ||
test | ||
ghc-options: -Wall | ||
build-depends: | ||
base >=4.8 && <5.0 | ||
, blaze-html | ||
, bytestring | ||
, conduit >=1.3 | ||
, containers | ||
, esqueleto | ||
, hspec | ||
, monad-logger | ||
, persistent >=2.8.0 && <2.11 | ||
, persistent-sqlite | ||
, persistent-template | ||
, 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 | ||
default-language: Haskell2010 |
This file was deleted.
Oops, something went wrong.