hoogle

Hoogle.Store.Type

Synopsis

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.

Instances

Typeable1 Once 
Eq a => Eq (Once a) 
Ord a => Ord (Once a) 
Show a => Show (Once a) 
(Typeable a, Store a) => Store (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

type SGet a = ReaderT SGetS IO a

runSGet :: Typeable a => FilePath -> SGet a -> IO a

getDefer :: Typeable a => SGet a -> SGet a

getLazyList :: SGet a -> Int -> Int -> SGet [a]