cabal-version: 3.0
name: hasql-dynamic-statements
version: 0.3.1.7
synopsis: Toolkit for constructing Hasql statements dynamically
description:
This library introduces into the Hasql ecosystem a new abstraction named Snippet,
which makes it trivial to construct SQL, while injecting values.
It is intended to be used when the SQL of your statement depends on the parameters,
that you want to pass in.
homepage: https://github.com/nikita-volkov/hasql-dynamic-statements
bug-reports:
https://github.com/nikita-volkov/hasql-dynamic-statements/issues
author: Nikita Volkov <nikita.y.volkov@mail.ru>
maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2019, Nikita Volkov
license: MIT
license-file: LICENSE
source-repository head
type: git
location: git://github.com/nikita-volkov/hasql-dynamic-statements.git
common base
default-language: Haskell2010
default-extensions:
ApplicativeDo
BangPatterns
BlockArguments
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingVia
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
LambdaCase
LiberalTypeSynonyms
MultiParamTypeClasses
MultiWayIf
NoImplicitPrelude
NoMonomorphismRestriction
OverloadedStrings
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
RoleAnnotations
ScopedTypeVariables
StandaloneDeriving
StrictData
TupleSections
TypeApplications
TypeFamilies
TypeOperators
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: library
exposed-modules:
Hasql.DynamicStatements.Session
Hasql.DynamicStatements.Snippet
Hasql.DynamicStatements.Statement
other-modules:
Hasql.DynamicStatements.Prelude
Hasql.DynamicStatements.Snippet.Defs
build-depends:
base >=4.14 && <5,
bytestring >=0.10 && <0.13,
containers >=0.6 && <0.8,
hasql >=1.8 && <1.9,
hasql-implicits >=0.2 && <0.3,
ptr >=0.16.7.2 && <0.17,
test-suite test
import: test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
hasql,
hasql-dynamic-statements,
rerebase <2,
tasty >=0.12 && <2,
tasty-hunit >=0.9 && <0.11,