Hoogle.Store.Type
- data Once a
- once :: a -> Once a
- fromOnce :: Once a -> a
- putOnce :: (a -> SPut ()) -> Once a -> SPut ()
- getOnce :: Typeable a => SGet a -> SGet (Once a)
- type SPut a = ReaderT SPutS IO a
- runSPut :: FilePath -> SPut () -> IO ()
- putByteString :: BString -> SPut ()
- putStorable :: Storable a => a -> SPut ()
- putDefer :: SPut () -> SPut ()
- type SGet a = ReaderT SGetS IO a
- runSGet :: Typeable a => FilePath -> SGet a -> IO a
- getByteString :: Word32 -> SGet BString
- getStorable :: Typeable a => Storable a => SGet a
- getDefer :: Typeable a => SGet a -> SGet a
- getLazyList :: SGet a -> Int -> Int -> SGet [a]
Documentation
data Once a
Turn on to see file statistics
All once values are equal with respect to keyOnce
If you create it with once
it will have the same key.
If two are loaded from a file they are equal.
putByteString :: BString -> SPut ()
putStorable :: Storable a => a -> SPut ()
getByteString :: Word32 -> SGet BString
getStorable :: Typeable a => Storable a => SGet a
getLazyList :: SGet a -> Int -> Int -> SGet [a]