Skip to content

Commit

Permalink
fixed issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
agocorona committed Aug 28, 2013
1 parent 594f7f3 commit 00669bd
Show file tree
Hide file tree
Showing 78 changed files with 15 additions and 1,641 deletions.
12 changes: 9 additions & 3 deletions Data/TCache/IndexQuery.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module Data.TCache.IndexQuery(
where

import Data.TCache
import Data.TCache.DefaultPersistence
import Data.TCache.Defs
import Data.List
import Data.Typeable
import Control.Concurrent.STM
Expand Down Expand Up @@ -138,7 +138,13 @@ instance (Typeable reg, Typeable a) => Indexable (Index reg a) where
where
[typeofreg, typeofa]= typeRepArgs $! typeOf map

defPath= const ""


instance (Queriable reg a, Typeable reg, Typeable a) => IResource (Index reg a) where
keyResource = key
writeResource =defWriteResource
readResourceByKey = defReadResourceByKey
delResource = defDelResource

getIndex :: (Queriable reg a)
=> ( reg -> a) -> a -> STM(DBRef (Index reg a), Index reg a,[DBRef reg])
Expand All @@ -162,7 +168,7 @@ getIndexr rindex val= do
return (rindex, Index index, dbrefs)

selectorIndex
:: (Queriable reg a
:: (Queriable reg a, IResource reg
) =>
(reg -> a) -> DBRef (Index reg a) -> DBRef reg -> Maybe reg -> STM ()

Expand Down
12 changes: 6 additions & 6 deletions Data/TCache/IndexText.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module Data.TCache.IndexText(
, allElemsOf) where
import Data.TCache
import Data.TCache.IndexQuery
import Data.TCache.DefaultPersistence
import Data.TCache.Defs
import qualified Data.Text.Lazy as T
import Data.Typeable
import qualified Data.Map as M
Expand Down Expand Up @@ -102,11 +102,11 @@ instance Serializable IndexText where
instance Indexable IndexText where
key (IndexText v _ _ _ _)= "indextext " ++ v

--instance IResource IndexText where
-- keyResource = key
-- writeResource =defWriteResource
-- readResourceByKey = defReadResourceByKey
-- delResource = defDelResource
instance IResource IndexText where
keyResource = key
writeResource =defWriteResource
readResourceByKey = defReadResourceByKey
delResource = defDelResource

readInitDBRef v x= do
mv <- readDBRef x
Expand Down
Binary file removed dist/TCache-0.10.0.0.tar.gz
Binary file not shown.
Binary file removed dist/TCache-0.10.0.1.tar.gz
Binary file not shown.
Binary file removed dist/TCache-0.10.0.11.tar.gz
Binary file not shown.
Binary file removed dist/TCache-0.10.0.12.tar.gz
Binary file not shown.
Binary file removed dist/TCache-0.10.0.2.tar.gz
Binary file not shown.
Binary file removed dist/TCache-0.10.1.0.tar.gz
Binary file not shown.
Binary file removed dist/build/Data/Persistent/Collection.hi
Binary file not shown.
Binary file removed dist/build/Data/Persistent/Collection.o
Binary file not shown.
Binary file removed dist/build/Data/Persistent/IDynamic.hi
Binary file not shown.
Binary file removed dist/build/Data/Persistent/IDynamic.o
Binary file not shown.
Binary file removed dist/build/Data/TCache.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/DefaultPersistence.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/DefaultPersistence.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/Defs.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/Defs.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/IResource.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/IResource.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/IndexQuery.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/IndexQuery.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/IndexText.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/IndexText.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/Memoization.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/Memoization.o
Binary file not shown.
Binary file removed dist/build/Data/TCache/Triggers.hi
Binary file not shown.
Binary file removed dist/build/Data/TCache/Triggers.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.0.0.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.0.1.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.0.10.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.0.11.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.0.12.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.10.1.0.o
Binary file not shown.
Binary file removed dist/build/HSTCache-0.9.0.4.o
Binary file not shown.
32 changes: 0 additions & 32 deletions dist/build/autogen/Paths_TCache.hs

This file was deleted.

65 changes: 0 additions & 65 deletions dist/build/autogen/cabal_macros.h

This file was deleted.

Binary file removed dist/build/libHSTCache-0.10.0.0.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.10.0.1.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.10.0.10.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.10.0.11.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.10.0.12.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.10.1.0.a
Binary file not shown.
Binary file removed dist/build/libHSTCache-0.9.0.4.a
Binary file not shown.
Empty file removed dist/build/sta01016
Empty file.
Binary file removed dist/build/sta05348
Binary file not shown.
Binary file removed dist/build/sta06068
Binary file not shown.
Loading

0 comments on commit 00669bd

Please sign in to comment.