Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Transform input output :: * -> * -> *
- consume :: Consume input output -> Transform input output
- produce :: (input -> Produce output) -> Transform input output
- ioTransform :: IO (Transform a b) -> Transform a b
- take :: Int -> Transform input input
- takeWhile :: (input -> Bool) -> Transform input input
- mapFilter :: (input -> Maybe output) -> Transform input output
- filter :: (input -> Bool) -> Transform input input
- just :: Transform (Maybe input) input
- distinctBy :: (Eq comparable, Hashable comparable) => (element -> comparable) -> Transform element element
- distinct :: (Eq element, Hashable element) => Transform element element
- builderChunks :: Transform Builder ByteString
- executeIO :: Transform (IO a) a
- mapInIO :: (a -> IO b) -> Transform a b
- parseBytes :: Parser parsed -> Transform ByteString (Either Text parsed)
- parseText :: Parser parsed -> Transform Text (Either Text parsed)
- bufferize :: Int -> Transform element element
- concurrently :: Int -> Transform input output -> Transform input output
- deleteFile :: Transform FilePath (Either IOException ())
- appendBytesToFile :: Transform (FilePath, ByteString) (Either IOException ())
Documentation
Potoki integration
Basics
distinctBy :: (Eq comparable, Hashable comparable) => (element -> comparable) -> Transform element element Source #
Parsing
parseBytes :: Parser parsed -> Transform ByteString (Either Text parsed) Source #
Lift an Attoparsec ByteString parser.
parseText :: Parser parsed -> Transform Text (Either Text parsed) Source #
Lift an Attoparsec Text parser.
Concurrency
concurrently :: Int -> Transform input output -> Transform input output Source #
Execute the transform on the specified amount of threads. The order of the outputs produced is indiscriminate.
File IO
deleteFile :: Transform FilePath (Either IOException ()) Source #
appendBytesToFile :: Transform (FilePath, ByteString) (Either IOException ()) Source #