oi-0.4.0.2: Library for purely functional lazy interactions with the outer world.

Copyright(c) Nobuo Yamashita 2011-2016
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Data.OI.Resource

Contents

Description

Author : Nobuo Yamashita Maintainer : nobsun@sampou.org Stability : experimental

Synopsis

Resource type

data Resource a Source

Constructors

Resource 

Fields

release :: ()
 
stream :: [IOResult a]
 

Instances

File resource

Resource handlers

mapR :: (a -> b) -> IOResult (Resource a) -> [b] Source

mapR' :: (a -> b) -> Resource a -> [b] Source

filterR :: (a -> Bool) -> IOResult (Resource a) -> [a] Source

filterR' :: (a -> Bool) -> Resource a -> [a] Source

takeR :: Integral i => i -> IOResult (Resource a) -> [a] Source

takeR' :: Integral i => i -> Resource a -> [a] Source

takeWhileR :: (a -> Bool) -> IOResult (Resource a) -> [a] Source

takeWhileR' :: (a -> Bool) -> Resource a -> [a] Source