Skip to content

Commit

Permalink
Minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
brinchj committed Mar 28, 2012
1 parent 3924eb0 commit 19d186c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/Data/BTree/Cache/Class.hs
Expand Up @@ -8,10 +8,6 @@ module Data.BTree.Cache.Class where
import Control.Concurrent.STM


data R b = forall a. Inter (IO a) (a -> STM ())
| Final b


class Monad m => Cache m p k v | m -> p, p -> k, p -> v, p -> m where
store :: Maybe k -> k -> v -> m ()
fetch :: k -> m (Maybe v)
Expand Down
2 changes: 1 addition & 1 deletion src/Data/BTree/Cache/STM.hs
Expand Up @@ -322,7 +322,7 @@ liftSTM = CacheSTM . stm
fail = CacheSTM . throwError


instance ( Show k, S.Serialize k, S.Serialize v, Ord k, Eq k, Eq v
instance ( S.Serialize k, S.Serialize v, Ord k, Eq k, Eq v
, Hashable k, KV.KVBackend m k v) =>
C.Cache (CacheSTM m k v) (Param m k v) k v where
store = store
Expand Down

0 comments on commit 19d186c

Please sign in to comment.