Copyright | (c) Nobuo Yamashita 2011-2016 |
---|---|
License | BSD3 |
Safe Haskell | None |
Language | Haskell2010 |
Author : Nobuo Yamashita Maintainer : nobsun@sampou.org Stability : experimental
- data Resource a = Resource {}
- inFileResource :: FilePath -> IOResult (Resource String) :-> IOResult (Resource String)
- outFileResource :: FilePath -> [String] -> IOResult (Resource ()) :-> IOResult (Resource ())
- mapR :: (a -> b) -> IOResult (Resource a) -> [b]
- mapR' :: (a -> b) -> Resource a -> [b]
- filterR :: (a -> Bool) -> IOResult (Resource a) -> [a]
- filterR' :: (a -> Bool) -> Resource a -> [a]
- takeR :: Integral i => i -> IOResult (Resource a) -> [a]
- takeR' :: Integral i => i -> Resource a -> [a]
- takeWhileR :: (a -> Bool) -> IOResult (Resource a) -> [a]
- takeWhileR' :: (a -> Bool) -> Resource a -> [a]
Resource type
File resource
Resource handlers
takeWhileR :: (a -> Bool) -> IOResult (Resource a) -> [a] Source
takeWhileR' :: (a -> Bool) -> Resource a -> [a] Source