Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Fetch element = Fetch (IO (Maybe element))
- duplicate :: Fetch element -> IO (Fetch element, Fetch element)
- maybeRef :: IORef (Maybe a) -> Fetch a
- list :: IORef [element] -> Fetch element
- firstCachingSecond :: IORef b -> Fetch (a, b) -> Fetch a
- bothFetchingFirst :: IORef b -> Fetch a -> Fetch (a, b)
- rightHandlingLeft :: (left -> IO ()) -> Fetch (Either left right) -> Fetch right
- rightCachingLeft :: IORef (Maybe left) -> Fetch (Either left right) -> Fetch right
- eitherFetchingRight :: IORef (Maybe left) -> Fetch right -> Fetch (Either left right)
- signaling :: IO () -> IO () -> Fetch a -> Fetch a
- ioFetch :: IO (Fetch a) -> Fetch a
- handleBytes :: Handle -> Fetch (Either IOException ByteString)
- handleBytesWithChunkSize :: Int -> Handle -> Fetch (Either IOException ByteString)
- handleText :: Handle -> Fetch (Either IOException Text)
- mapFilter :: (input -> Maybe output) -> Fetch input -> Fetch output
- filter :: (input -> Bool) -> Fetch input -> Fetch input
- just :: Fetch (Maybe element) -> Fetch element
- takeWhile :: (element -> Bool) -> Fetch element -> Fetch element
- infiniteMVar :: MVar element -> Fetch element
- finiteMVar :: MVar (Maybe element) -> Fetch element
- vector :: IORef Int -> Vector element -> Fetch element
- handlingElements :: (element -> IO ()) -> Fetch element -> Fetch element
- lazyByteStringRef :: IORef ByteString -> Fetch ByteString
- enumUntil :: (Enum a, Ord a) => IORef a -> a -> Fetch a
Documentation
newtype Fetch element Source #
Passive producer of elements.
Instances
Functor Fetch # | |
Applicative Fetch # | |
Alternative Fetch # | |
handleBytes :: Handle -> Fetch (Either IOException ByteString) Source #
handleBytesWithChunkSize :: Int -> Handle -> Fetch (Either IOException ByteString) Source #
handleText :: Handle -> Fetch (Either IOException Text) Source #
infiniteMVar :: MVar element -> Fetch element Source #