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
- cacheCacheDir :: AttrLabelProxy "cacheDir"
- constructCacheCacheDir :: Text -> IO ([Char], GValue)
- getCacheCacheDir :: (MonadIO m, CacheK o) => o -> m (Maybe Text)
- data CacheCacheTypePropertyInfo
- cacheCacheType :: AttrLabelProxy "cacheType"
- constructCacheCacheType :: CacheType -> IO ([Char], GValue)
- getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType
Exported types
GObject Cache | |
((~) * info (ResolveCacheMethod t Cache), MethodInfo * info Cache p) => IsLabelProxy t (Cache -> p) | |
type ParentTypes Cache | |
type AttributeList Cache | |
type SignalList Cache |
Methods
cacheClear
data CacheClearMethodInfo Source
((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheClearMethodInfo a signature |
cacheClear :: (MonadIO m, CacheK a) => a -> m () Source
cacheDump
data CacheDumpMethodInfo Source
((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheDumpMethodInfo a signature |
cacheFlush
data CacheFlushMethodInfo Source
((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheFlushMethodInfo a signature |
cacheFlush :: (MonadIO m, CacheK a) => a -> m () Source
cacheGetMaxSize
data CacheGetMaxSizeMethodInfo Source
((~) * signature (m Word32), MonadIO m, CacheK a) => MethodInfo * CacheGetMaxSizeMethodInfo a signature |
cacheGetMaxSize :: (MonadIO m, CacheK a) => a -> m Word32 Source
cacheLoad
data CacheLoadMethodInfo Source
((~) * signature (m ()), MonadIO m, CacheK a) => MethodInfo * CacheLoadMethodInfo a signature |
cacheNew
cacheSetMaxSize
data CacheSetMaxSizeMethodInfo Source
((~) * signature (Word32 -> m ()), MonadIO m, CacheK a) => MethodInfo * CacheSetMaxSizeMethodInfo a signature |
cacheSetMaxSize :: (MonadIO m, CacheK a) => a -> Word32 -> m () Source
Properties
CacheDir
data CacheCacheDirPropertyInfo Source
AttrInfo CacheCacheDirPropertyInfo | |
type AttrLabel CacheCacheDirPropertyInfo = "cache-dir" | |
type AttrGetType CacheCacheDirPropertyInfo = Maybe Text | |
type AttrBaseTypeConstraint CacheCacheDirPropertyInfo = CacheK | |
type AttrSetTypeConstraint CacheCacheDirPropertyInfo = * ~ Text | |
type AttrAllowedOps CacheCacheDirPropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ((:) AttrOpTag AttrClear ([] AttrOpTag))) |
cacheCacheDir :: AttrLabelProxy "cacheDir" Source
CacheType
data CacheCacheTypePropertyInfo Source
AttrInfo CacheCacheTypePropertyInfo | |
type AttrLabel CacheCacheTypePropertyInfo = "cache-type" | |
type AttrGetType CacheCacheTypePropertyInfo = CacheType | |
type AttrBaseTypeConstraint CacheCacheTypePropertyInfo = CacheK | |
type AttrSetTypeConstraint CacheCacheTypePropertyInfo = * ~ CacheType | |
type AttrAllowedOps CacheCacheTypePropertyInfo = (:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag)) |
cacheCacheType :: AttrLabelProxy "cacheType" Source
getCacheCacheType :: (MonadIO m, CacheK o) => o -> m CacheType Source