Network.Shpider.State
Description
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 CurlOptions used when calling curl.
Constructors
| SS | |
Fields
| |
Instances
The Page datatype. Holds Links, Forms, the parsed [ Tag ], the page source, and the page's absolute URL.
Constructors
| Page | |
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.