packages feed

ejdb2-binding 0.3.0.0 → 0.3.0.1

raw patch · 4 files changed

+13/−7 lines, 4 filesdep ~basePVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

+ Database.EJDB2: type BindM a = StateT BindState IO a

Files

CHANGELOG.md view
@@ -1,7 +1,13 @@ # Changelog All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)++## [0.3.0.1] - 2020-12-22+### Changed+- base dependecy updated to `base >=4.12 && <4.14`+### Added+- BindM type exposed  ## [0.3.0.0] - 2020-05-01 ### Changed
ejdb2-binding.cabal view
@@ -3,7 +3,7 @@ category:            Database description:         Binding to EJDB2 C library, an embedded JSON noSQL database. Package requires libejdb2 to build. Please see the README on GitHub at <https://github.com/cescobaz/ejdb2haskell#readme> synopsis:            Binding to EJDB2 C library, an embedded JSON noSQL database-version:             0.3.0.0+version:             0.3.0.1 license:             MIT license-file:        LICENSE homepage:            https://github.com/cescobaz/ejdb2haskell#readme@@ -38,7 +38,7 @@                      , Database.EJDB2.Bindings.Types.EJDB                      , Database.EJDB2.Bindings.Types.EJDBExec                      , Database.EJDB2.Bindings.Types.EJDBDoc-  build-depends:       base ^>=4.12.0.0+  build-depends:       base >=4.12 && <4.14                      , bytestring ^>=0.10.10.0                      , aeson ^>=1.4.6.0                      , unordered-containers ^>=0.2.10.0@@ -65,7 +65,7 @@                        IndexTests                        OnlineBackupTests                        FoldTests-  build-depends:       base ^>=4.12.0.0+  build-depends:       base >=4.12 && <4.14                      , tasty ^>=1.2.3                      , tasty-hunit ^>=0.10.0.2                      , aeson ^>=1.4.6.0
src/Database/EJDB2.hs view
@@ -32,6 +32,7 @@     , onlineBackup     , fold     , Query(..)+    , BindM     , noBind     , setBool     , setBoolAtIndex
src/Database/EJDB2/Query.hs view
@@ -21,7 +21,6 @@ import           Control.Monad.State.Lazy  import qualified Data.Bool                   as Bool-import           Data.IORef import           Data.Int  import           Database.EJDB2.Bindings.JQL@@ -30,7 +29,6 @@ import           Foreign import           Foreign.C.String import           Foreign.C.Types-import           Foreign.Marshal.Alloc  -- | Query data with binding. Collection must be specified in query. data Query a = Query String -- ^ Query text with collection@@ -42,11 +40,12 @@ type BindM a = StateT BindState IO a  bind :: BindM a -> BindState -> IO BindState-bind bindM state = execStateT bindM state+bind = execStateT  getJQL :: BindM JQL getJQL = get >>= \(BindState jql _) -> return jql +-- | Create empty bind noBind :: BindM () noBind = return ()