happstack-state 6.1.3 → 6.1.4
raw patch · 2 files changed
+20/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Happstack.State.ClockTime: TOD :: Integer -> Integer -> ClockTime
+ Happstack.State.ClockTime: data ClockTime :: *
+ Happstack.State.ClockTime: instance [overlap ok] (Data ctx Integer, Sat (ctx ClockTime), Sat (ctx Integer)) => Data ctx ClockTime
+ Happstack.State.ClockTime: instance [overlap ok] Data ClockTime
+ Happstack.State.ClockTime: instance [overlap ok] Default ClockTime
+ Happstack.State.ClockTime: instance [overlap ok] Serialize ClockTime
+ Happstack.State.ClockTime: instance [overlap ok] Typeable ClockTime
+ Happstack.State.ClockTime: instance [overlap ok] Version ClockTime
Files
happstack-state.cabal view
@@ -1,5 +1,5 @@ Name: happstack-state-Version: 6.1.3+Version: 6.1.4 Synopsis: Event-based distributed state. Description: Unplug your machine and restart and have your app recover to exactly where it left off. Happstack-State spares you the need to deal with all the marshalling, consistency, and configuration headache that you would have if you used an external DBMS for this purpose. Its component model makes it easy to compose big applications from smaller reliable parts. Use event subscription to trigger IO actions and support comet-style or irc-bot applications. License: BSD3@@ -32,6 +32,7 @@ Happstack.State -- Happstack.State.Logger Happstack.State.Saver+ Happstack.State.ClockTime Happstack.State.Control Happstack.State.Transaction Happstack.State.ComponentTH
+ src/Happstack/State/ClockTime.hs view
@@ -0,0 +1,18 @@+{-# LANGUAGE TemplateHaskell, TypeFamilies, DeriveDataTypeable,+ FlexibleInstances, MultiParamTypeClasses, FlexibleContexts,+ UndecidableInstances, StandaloneDeriving, TypeSynonymInstances+ #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}+-- |instances of Typeable, Data, Serialize, Version, and Default for ClockTime+module Happstack.State.ClockTime (ClockTime(..)) where++import Data.Generics (Data, Typeable)+import Happstack.Data (deriveNewData)+import Happstack.State (Version, deriveSerialize)+import System.Time (ClockTime(..))++deriving instance Typeable ClockTime+deriving instance Data ClockTime+instance Version ClockTime+$(deriveSerialize ''ClockTime)+$(deriveNewData [''ClockTime])