hasql-th-kronor-0.5.1.1: hasql-th-kronor.cabal
cabal-version: 3.0
name: hasql-th-kronor
version: 0.5.1.1
category: Hasql, Database, PostgreSQL, Template Haskell
synopsis: Template Haskell utilities for Hasql, with Kronor's quasiquote extensions
description:
Kronor's fork of "hasql-th", an extension-library for Hasql,
bringing compile-time syntax checking,
great simplification of declaration of statements and
other TemplateHaskell-based utilities.
The quasiquotes also accept Haskell function, constructor and record
targets in the select list, and Haskell fields on parameter placeholders
(documented in "Hasql.TH"). It exposes the same modules as "hasql-th" and
parses with "postgresql-syntax-kronor".
For details please see <https://github.com/kronor-io/hasql-th the readme>.
homepage: https://github.com/kronor-io/hasql-th
bug-reports: https://github.com/kronor-io/hasql-th/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: José Lorenzo Rodríguez <lorenzo@kronor.io>
copyright: (c) 2015, Nikita Volkov
license: MIT
license-file: LICENSE
extra-doc-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: https://github.com/kronor-io/hasql-th
branch: hackage
common base
default-language: Haskell2010
default-extensions:
ApplicativeDo
Arrows
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DuplicateRecordFields
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
LiberalTypeSynonyms
MagicHash
MultiParamTypeClasses
MultiWayIf
NoImplicitPrelude
NoMonomorphismRestriction
OverloadedStrings
ParallelListComp
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeFamilies
TypeOperators
UnboxedTuples
common executable
import: base
ghc-options:
-O2
-threaded
-with-rtsopts=-N
-rtsopts
-funbox-strict-fields
common test
import: base
ghc-options:
-threaded
-with-rtsopts=-N
library
import: base
hs-source-dirs: src/library
exposed-modules:
Hasql.TH
Hasql.TH.Construction.Exp
Hasql.TH.Extraction.ChildExprList
Hasql.TH.Extraction.Exp
Hasql.TH.Extraction.InputTypeList
Hasql.TH.Extraction.OutputHsTarget
Hasql.TH.Extraction.OutputTypeList
Hasql.TH.Extraction.PlaceholderTypeMap
Hasql.TH.Extraction.PrimitiveType
Hasql.TH.Prelude
build-depends:
base >=4.11 && <5,
containers >=0.6 && <0.9,
contravariant >=1.5.2 && <2,
foldl >=1.4.5 && <2,
hasql >=1.10 && <1.11 || >=2.0 && <2.1,
postgresql-syntax-kronor ^>=0.5.0.3,
template-haskell >=2.8 && <3,
template-haskell-compat-v0208 >=0.1.9 && <0.2,
text >=1 && <3,
transformers >=0.5 && <0.7,
uuid >=1.3 && <2,
vector >=0.12 && <0.14,
-- Write the smoke test's spliced code to dist-newstyle, to read what each
-- extension expands to: cabal test -f dump-splices
flag dump-splices
description: Dump the smoke test's Template Haskell splices to files.
default: False
manual: True
test-suite smoke
type: exitcode-stdio-1.0
default-language: Haskell2010
hs-source-dirs: smoke
main-is: Main.hs
if flag(dump-splices)
ghc-options:
-ddump-splices
-ddump-to-file
-dsuppress-uniques
build-depends:
base >=4.11 && <5,
hasql >=2.0 && <2.1,
hasql-th-kronor,
text >=1 && <3,
vector >=0.12 && <0.14,