This module describes the state of shpider computations, and provides a monad transformer over it.
- module Control.Monad.State
- data ShpiderState = SS {}
- data Page = Page {}
- type Shpider = StateT ShpiderState IO
- emptyPage :: Page
- runShpider :: Shpider a -> IO a
- runShpiderSt :: Shpider a -> IO (a, ShpiderState)
Documentation
module Control.Monad.State
data ShpiderState Source
The shpider state holds all the options for shpider transactions, the current page and all the CurlOption
s used when calling curl.
SS | |
|
type Shpider = StateT ShpiderState IOSource
The type of Shpider computations. A state transformer over ShpiderState
and IO
.
runShpider :: Shpider a -> IO aSource
Run a Shpider computation, returning the result.
runShpiderSt :: Shpider a -> IO (a, ShpiderState)Source
Run a Shpider computation, returning the result with the state.