acid-state 0.16.1.1 → 0.16.1.2
raw patch · 6 files changed
+57/−26 lines, 6 filesdep ~template-haskelldep ~unixPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: template-haskell, unix
API changes (from Hackage documentation)
- Data.Acid.Advanced: type family MethodState ev;
- Data.Acid.Core: type family MethodState ev;
- Data.Acid.TemplateHaskell: type TyVarBndrUnit = TyVarBndr
+ Data.Acid.Advanced: type MethodResult ev;
+ Data.Acid.Advanced: type MethodState ev;
+ Data.Acid.Core: type MethodResult ev;
+ Data.Acid.Core: type MethodState ev;
- Data.Acid.TemplateHaskell: allTyVarBndrNames :: [TyVarBndr] -> [Name]
+ Data.Acid.TemplateHaskell: allTyVarBndrNames :: [TyVarBndr a] -> [Name]
- Data.Acid.TemplateHaskell: makeIsAcidic :: SerialiserSpec -> [Name] -> Name -> [TyVarBndr] -> p -> Q Dec
+ Data.Acid.TemplateHaskell: makeIsAcidic :: SerialiserSpec -> [Name] -> Name -> [TyVarBndr ()] -> p -> Q Dec
- Data.Acid.TemplateHaskell: mkCxtFromTyVars :: [Name] -> [TyVarBndr] -> [Pred] -> CxtQ
+ Data.Acid.TemplateHaskell: mkCxtFromTyVars :: Quote m => [Name] -> [TyVarBndr a] -> [Pred] -> m Cxt
- Data.Acid.TemplateHaskell: tyVarBndrName :: TyVarBndr -> Name
+ Data.Acid.TemplateHaskell: tyVarBndrName :: TyVarBndr a -> Name
Files
- CHANGELOG.md +19/−0
- acid-state.cabal +22/−18
- src-unix/FileIO.hs +16/−8
- test-state/OldStateTest1/events-0000000681.log +0/−0
- test-state/OldStateTest2/events-0000000149.log +0/−0
- test-state/OldStateTest3/events-0000000100.log +0/−0
CHANGELOG.md view
@@ -1,6 +1,16 @@+0.16.1.2+========++_Andreas Abel, 2023-04-06_++- Support unix-2.8+- Tested with GHC 7.8 - 9.6.1+ 0.16.1.1 ======== +_Andreas Abel, 2022-06-01_+ - Adapt to changes in hedgehog-1.1 related to barbies - Support mtl-2.3 - Tested with GHC 7.8 - 9.2.3@@ -8,10 +18,19 @@ 0.16.1 ====== +_David Fox, 2022-02-18_+ - Support GHC-9.0.2, template-haskell 2.18 +0.16.0.1+========++_Jeremy Shaw, 2020-05-19_+ 0.16.0 ======++_Jeremy Shaw, 2019-11-14_ - support network-3.x and ghc-8.8.1 - Fix tests
acid-state.cabal view
@@ -1,5 +1,5 @@ Name: acid-state-Version: 0.16.1.1+Version: 0.16.1.2 Synopsis: Add ACID guarantees to any serializable Haskell data structure. Description: Use regular Haskell data structures as your database and get stronger ACID guarantees than most RDBMS offer. Homepage: https://github.com/acid-state/acid-state@@ -12,7 +12,9 @@ Cabal-version: >=1.10 tested-with:- GHC == 9.2.3+ GHC == 9.6.1+ GHC == 9.4.4+ GHC == 9.2.7 GHC == 9.0.2 GHC == 8.10.7 GHC == 8.8.4@@ -69,7 +71,7 @@ mtl, network < 3.2, network-bsd,- template-haskell < 2.19,+ template-haskell < 2.21, th-expand-syns if os(windows)@@ -136,6 +138,7 @@ other-modules: Data.Acid.KeyValueStateMachine Data.Acid.StateMachineTest default-language: Haskell2010+ default-extensions: TypeOperators if flag(skip-state-machine-test) buildable: False@@ -195,32 +198,33 @@ system-fileio == 0.3.*, system-filepath, -- perRunEnv was added in criterion-1.2.0.0- criterion >= 1.2.0.0 && < 1.6,+ criterion >= 1.2.0.0 && < 1.7, mtl, base, acid-state default-language: Haskell2010 default-extensions:- PatternGuards+ -- keep this list alphabetically sorted!+ ConstraintKinds+ DataKinds+ DefaultSignatures+ DeriveDataTypeable+ EmptyDataDecls+ FlexibleContexts+ FlexibleInstances GADTs- StandaloneDeriving MultiParamTypeClasses- ScopedTypeVariables- FlexibleInstances- TypeFamilies- TypeOperators- FlexibleContexts NoImplicitPrelude- EmptyDataDecls- DataKinds NoMonomorphismRestriction+ OverloadedStrings+ PatternGuards RankNTypes- ConstraintKinds- DefaultSignatures- TupleSections+ ScopedTypeVariables+ StandaloneDeriving TemplateHaskell- OverloadedStrings- DeriveDataTypeable+ TupleSections+ TypeFamilies+ TypeOperators ghc-options: -O2
src-unix/FileIO.hs view
@@ -1,13 +1,17 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE ForeignFunctionInterface #-}+ module FileIO(FHandle,open,write,flush,close) where-import System.Posix(Fd(Fd),- openFd,- fdWriteBuf,- closeFd,- OpenMode(WriteOnly),- defaultFileFlags,- stdFileMode- )++import System.Posix+ ( Fd(Fd), openFd, fdWriteBuf, closeFd+ , OpenMode(WriteOnly)+#if MIN_VERSION_unix(2,8,0)+ , OpenFileFlags(creat)+#endif+ , defaultFileFlags+ , stdFileMode+ ) import Data.Word(Word8,Word32) import Foreign(Ptr) import Foreign.C(CInt(..))@@ -16,7 +20,11 @@ -- should handle opening flags correctly open :: FilePath -> IO FHandle+#if !MIN_VERSION_unix(2,8,0) open filename = fmap FHandle $ openFd filename WriteOnly (Just stdFileMode) defaultFileFlags+#else+open filename = fmap FHandle $ openFd filename WriteOnly defaultFileFlags{ creat = Just stdFileMode }+#endif write :: FHandle -> Ptr Word8 -> Word32 -> IO Word32 write (FHandle fd) data' length = fmap fromIntegral $ fdWriteBuf fd data' $ fromIntegral length
− test-state/OldStateTest1/events-0000000681.log
− test-state/OldStateTest2/events-0000000149.log
− test-state/OldStateTest3/events-0000000100.log