Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
CPython.Protocols.Iterator
Synopsis
- class Object a => Iterator a where
- toIterator :: a -> SomeIterator
- data SomeIterator
- castToIterator :: Object a => a -> IO (Maybe SomeIterator)
- next :: Iterator iter => iter -> IO (Maybe SomeObject)
Documentation
class Object a => Iterator a where Source #
Methods
toIterator :: a -> SomeIterator Source #
Instances
Iterator SomeIterator Source # | |
Defined in CPython.Internal Methods | |
Iterator CallableIterator Source # | |
Defined in CPython.Types.Iterator Methods | |
Iterator SequenceIterator Source # | |
Defined in CPython.Types.Iterator Methods |
data SomeIterator Source #
Instances
Iterator SomeIterator Source # | |
Defined in CPython.Internal Methods | |
Object SomeIterator Source # | |
Defined in CPython.Internal Methods toObject :: SomeIterator -> SomeObject Source # |
castToIterator :: Object a => a -> IO (Maybe SomeIterator) Source #