Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/restyled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,13 @@ jobs:
- uses: restyled-io/actions/run@v4
with:
suggestions: true
cabal-fmt:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v2
- uses: haskell-actions/setup@v2
with:
ghc-version: "9.6"
cabal-version: "3.6"
- run: cabal install cabal-fmt
- run: cabal-fmt --check **/*.cabal
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
shell = {
tools = {
cabal = "latest";
cabal-fmt = "latest";
cabal-install = "latest";
fourmolu = "latest";
ghcid = "latest";
Expand Down
136 changes: 70 additions & 66 deletions persistent-mongoDB/persistent-mongoDB.cabal
Original file line number Diff line number Diff line change
@@ -1,78 +1,82 @@
name: persistent-mongoDB
version: 2.13.1.0
license: MIT
license-file: LICENSE
author: Greg Weber <[email protected]>
maintainer: Andres Schmois <[email protected]>
synopsis: Backend for the persistent library using mongoDB.
category: Database
stability: Experimental
cabal-version: >= 1.10
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
description: MongoDB backend for the persistent library.
name: persistent-mongoDB
version: 2.13.1.0
license: MIT
license-file: LICENSE
author: Greg Weber <[email protected]>
maintainer: Andres Schmois <[email protected]>
synopsis: Backend for the persistent library using mongoDB.
category: Database
stability: Experimental
cabal-version: >=1.10
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
description: MongoDB backend for the persistent library.
extra-source-files: ChangeLog.md

Flag high_precision_date
Description: for MongoDB use a time storage with nano second precision.
Default: False
flag high_precision_date
description: for MongoDB use a time storage with nano second precision.
default: False

library
build-depends: base >= 4.8 && < 5
, persistent >= 2.12 && < 3
, aeson >= 1.0
, bson >= 0.3.2 && < 0.5
, bytestring
, cereal >= 0.5
, conduit >= 1.2
, http-api-data >= 0.3.7 && < 0.7
, mongoDB >= 2.7.1.2 && < 2.8
, network >= 2.6
, path-pieces >= 0.2
, resource-pool >= 0.2 && < 0.5
, resourcet >= 1.1
, text >= 1.2
, time
, transformers >= 0.5
, unliftio-core
build-depends:
aeson >=1.0
, base >=4.8 && <5
, bson >=0.3.2 && <0.5
, bytestring
, cereal >=0.5
, conduit >=1.2
, http-api-data >=0.3.7 && <0.7
, mongoDB >=2.7.1.2 && <2.8
, network >=2.6
, path-pieces >=0.2
, persistent >=2.12 && <3
, resource-pool >=0.2 && <0.5
, resourcet >=1.1
, text >=1.2
, time
, transformers >=0.5
, unliftio-core

exposed-modules: Database.Persist.MongoDB
ghc-options: -Wall
default-language: Haskell2010
exposed-modules: Database.Persist.MongoDB
ghc-options: -Wall
default-language: Haskell2010

if flag(high_precision_date)
cpp-options: -DHIGH_PRECISION_DATE
if flag(high_precision_date)
cpp-options: -DHIGH_PRECISION_DATE

test-suite test
type: exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs: test
other-modules: MongoInit
EmbedTestMongo
EntityEmbedTestMongo
RawMongoHelpers
ghc-options: -Wall
type: exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs: test
other-modules:
EmbedTestMongo
EntityEmbedTestMongo
MongoInit
RawMongoHelpers

build-depends: base >= 4.6 && < 5
, persistent
, persistent-mongoDB
, persistent-qq
, persistent-test
, blaze-html
, bytestring
, containers
, hspec >= 2.4.0
, HUnit
, mongoDB
, process
, QuickCheck
, template-haskell
, text
, time
, transformers
, unliftio-core
default-language: Haskell2010
ghc-options: -Wall
build-depends:
base >=4.6 && <5
, blaze-html
, bytestring
, containers
, hspec >=2.4.0
, HUnit
, mongoDB
, persistent
, persistent-mongoDB
, persistent-qq
, persistent-test
, process
, QuickCheck
, template-haskell
, text
, time
, transformers
, unliftio-core

default-language: Haskell2010

source-repository head
type: git
Expand Down
162 changes: 84 additions & 78 deletions persistent-mysql/persistent-mysql.cabal
Original file line number Diff line number Diff line change
@@ -1,89 +1,95 @@
name: persistent-mysql
version: 2.13.1.5
license: MIT
license-file: LICENSE
author: Felipe Lessa <[email protected]>, Michael Snoyman
maintainer: Felipe Lessa <[email protected]>
synopsis: Backend for the persistent library using MySQL database server.
category: Database, Yesod
stability: Stable
cabal-version: >= 1.10
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
name: persistent-mysql
version: 2.13.1.5
license: MIT
license-file: LICENSE
author: Felipe Lessa <[email protected]>, Michael Snoyman
maintainer: Felipe Lessa <[email protected]>
synopsis:
Backend for the persistent library using MySQL database server.

category: Database, Yesod
stability: Stable
cabal-version: >=1.10
build-type: Simple
homepage: http://www.yesodweb.com/book/persistent
bug-reports: https://github.com/yesodweb/persistent/issues
description:
This package contains a backend for persistent using the
MySQL database server. Internally it uses the @mysql-simple@
and @mysql@ packages in order to access the database.
.
This package supports only MySQL 5.1 and above. However, it
has been tested only on MySQL 5.5.
Only the InnoDB storage engine is officially supported.
.
Known problems:
.
* This package does not support statements inside other
statements.
This package contains a backend for persistent using the
MySQL database server. Internally it uses the @mysql-simple@
and @mysql@ packages in order to access the database.
.
This package supports only MySQL 5.1 and above. However, it
has been tested only on MySQL 5.5.
Only the InnoDB storage engine is officially supported.
.
Known problems:
.
* This package does not support statements inside other
statements.

extra-source-files: ChangeLog.md

library
build-depends: base >= 4.9 && < 5
, persistent >= 2.13.3 && < 3
, aeson >= 1.0
, blaze-builder
, bytestring >= 0.10.8
, conduit >= 1.2.12
, containers >= 0.5
, monad-logger
, mysql >= 0.2.1 && < 0.3
, mysql-simple >= 0.4.7 && < 0.5
, resourcet >= 1.1
, resource-pool
, text >= 1.2
, transformers >= 0.5
, unliftio-core
exposed-modules: Database.Persist.MySQL
ghc-options: -Wall
default-language: Haskell2010
build-depends:
aeson >=1.0
, base >=4.9 && <5
, blaze-builder
, bytestring >=0.10.8
, conduit >=1.2.12
, containers >=0.5
, monad-logger
, mysql >=0.2.1 && <0.3
, mysql-simple >=0.4.7 && <0.5
, persistent >=2.13.3 && <3
, resource-pool
, resourcet >=1.1
, text >=1.2
, transformers >=0.5
, unliftio-core

exposed-modules: Database.Persist.MySQL
ghc-options: -Wall
default-language: Haskell2010

source-repository head
type: git
location: https://github.com/yesodweb/persistent.git

test-suite test
type: exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs: test
other-modules:
MyInit
InsertDuplicateUpdate
CustomConstraintTest
ImplicitUuidSpec
JSONTest
ghc-options: -Wall
type: exitcode-stdio-1.0
main-is: main.hs
hs-source-dirs: test
other-modules:
CustomConstraintTest
ImplicitUuidSpec
InsertDuplicateUpdate
JSONTest
MyInit

ghc-options: -Wall
build-depends:
aeson
, base >=4.9 && <5
, bytestring
, conduit
, containers
, fast-logger
, hspec >=2.4
, http-api-data
, HUnit
, monad-logger
, mysql
, path-pieces
, persistent
, persistent-mysql
, persistent-qq
, persistent-test
, QuickCheck
, quickcheck-instances
, resourcet
, text
, time
, transformers
, unliftio-core

build-depends:
base >= 4.9 && < 5
, aeson
, bytestring
, containers
, conduit
, fast-logger
, hspec >= 2.4
, http-api-data
, HUnit
, monad-logger
, mysql
, path-pieces
, persistent
, persistent-mysql
, persistent-qq
, persistent-test
, QuickCheck
, quickcheck-instances
, resourcet
, text
, time
, transformers
, unliftio-core
default-language: Haskell2010
default-language: Haskell2010
Loading
Loading