Skip to content

Commit

Permalink
Modernize cabal
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed May 8, 2024
1 parent 063f03a commit b01f9c1
Showing 1 changed file with 46 additions and 49 deletions.
95 changes: 46 additions & 49 deletions hasql-dynamic-statements.cabal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
cabal-version: 3.0
name: hasql-dynamic-statements
version: 0.3.1.5
synopsis: Toolkit for constructing Hasql statements dynamically
Expand All @@ -16,35 +17,70 @@ maintainer: Nikita Volkov <nikita.y.volkov@mail.ru>
copyright: (c) 2019, Nikita Volkov
license: MIT
license-file: LICENSE
build-type: Simple
cabal-version: >=1.10

source-repository head
type: git
location: git://github.com/nikita-volkov/hasql-dynamic-statements.git

library
hs-source-dirs: library
common base
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
ApplicativeDo
BangPatterns
BlockArguments
ConstraintKinds
DataKinds
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
TypeApplications
StrictData
TupleSections
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

ghc-options: -funbox-strict-fields
default-language: Haskell2010
library
import: base
hs-source-dirs: library
exposed-modules:
Hasql.DynamicStatements.Session
Hasql.DynamicStatements.Snippet
Expand All @@ -55,57 +91,18 @@ library
Hasql.DynamicStatements.Snippet.Defs

build-depends:
base >=4.12 && <5
base >=4.14 && <5
, bytestring >=0.10 && <0.13
, containers >=0.6 && <0.8
, hasql >=1.6 && <1.7
, hasql-implicits >=0.1.1.2 && <0.2
, 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
default-extensions:
NoImplicitPrelude
NoMonomorphismRestriction
Arrows
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveTraversable
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
LambdaCase
LiberalTypeSynonyms
MagicHash
MultiParamTypeClasses
MultiWayIf
OverloadedStrings
ParallelListComp
PatternGuards
QuasiQuotes
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UnboxedTuples

default-language: Haskell2010
build-depends:
hasql
, hasql-dynamic-statements
Expand Down

0 comments on commit b01f9c1

Please sign in to comment.