Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype Cache = Cache (ForeignPtr Cache)
- class GObject o => CacheK o
- toCache :: CacheK o => o -> IO Cache
- noCache :: Maybe Cache
- data CacheClearMethodInfo
- cacheClear :: (MonadIO m, CacheK a) => a -> m ()
- data CacheDumpMethodInfo
- cacheDump :: (MonadIO m, CacheK a) => a -> m ()
- data CacheFlushMethodInfo
- cacheFlush :: (MonadIO m, CacheK a) => a -> m ()
- data CacheGetMaxSizeMethodInfo
- cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32
- data CacheLoadMethodInfo
- cacheLoad :: (MonadIO m, CacheK a) => a -> m ()
- cacheNew :: MonadIO m => Text -> CacheType -> m Cache
- data CacheSetMaxSizeMethodInfo
- cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m ()
- data CacheCacheDirPropertyInfo
- constructCacheCacheDir :: Text -> IO ([Char], GValue)
- getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m Text
- data CacheCacheTypePropertyInfo
- constructCacheCacheType :: CacheType -> IO ([Char], GValue)
- getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType
Exported types
GObject Cache Source | |
((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabel t (Cache -> p) Source | |
((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabelProxy t (Cache -> p) Source | |
type ParentTypes Cache Source | |
type AttributeList Cache Source | |
type SignalList Cache Source |
Methods
cacheClear
data CacheClearMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheClearMethodInfo a signature Source | |
cacheClear :: (MonadIO m, CacheK a) => a -> m () Source
cacheDump
data CacheDumpMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheDumpMethodInfo a signature Source | |
cacheFlush
data CacheFlushMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheFlushMethodInfo a signature Source | |
cacheFlush :: (MonadIO m, CacheK a) => a -> m () Source
cacheGetMaxSize
data CacheGetMaxSizeMethodInfo Source
((~) (TYPE Lifted) signature (m Word32), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheGetMaxSizeMethodInfo a signature Source | |
cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32 Source
cacheLoad
data CacheLoadMethodInfo Source
((~) (TYPE Lifted) signature (m ()), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheLoadMethodInfo a signature Source | |
cacheNew
cacheSetMaxSize
data CacheSetMaxSizeMethodInfo Source
((~) (TYPE Lifted) signature (Word32 -> m ()), MonadIO m, CacheK a) => MethodInfo (TYPE Lifted) CacheSetMaxSizeMethodInfo a signature Source | |
cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m () Source
Properties
CacheDir
data CacheCacheDirPropertyInfo Source
AttrInfo CacheCacheDirPropertyInfo Source | |
type AttrLabel CacheCacheDirPropertyInfo = "cache-dir" Source | |
type AttrGetType CacheCacheDirPropertyInfo = Text Source | |
type AttrBaseTypeConstraint CacheCacheDirPropertyInfo = CacheK Source | |
type AttrSetTypeConstraint CacheCacheDirPropertyInfo = TYPE Lifted ~ Text Source | |
type AttrAllowedOps CacheCacheDirPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m Text Source
CacheType
data CacheCacheTypePropertyInfo Source
AttrInfo CacheCacheTypePropertyInfo Source | |
type AttrLabel CacheCacheTypePropertyInfo = "cache-type" Source | |
type AttrGetType CacheCacheTypePropertyInfo = CacheType Source | |
type AttrBaseTypeConstraint CacheCacheTypePropertyInfo = CacheK Source | |
type AttrSetTypeConstraint CacheCacheTypePropertyInfo = TYPE Lifted ~ CacheType Source | |
type AttrAllowedOps CacheCacheTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) Source |
getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType Source