jobs-ui-0.2.0.0: A library for creating a jobs management website running custom jobs.

Safe HaskellSafe
LanguageHaskell2010

Web.JobsUi.Types

Description

Define a job type: a description of a task a user can run.

Synopsis

Documentation

data JobType Source #

Existential type for job. Let's us ignore the job payload internally.

Constructors

JobType 

Fields

data ParamInputType Source #

Input type

Constructors

TextInput 
TextOptions (IO [Text]) 

data Param Source #

Defines a parameter for the user

data JobInfo a Source #

JobInfo is a description a job a user can run @a@ is the structure built from the parameters.

Constructors

JobInfo 

Fields

data Result v a #

A mostly internally used type for representing Success/Error, with a special applicative instance

Constructors

Success a 
Error v 
Instances
Monoid v => Monad (Result v) 
Instance details

Defined in Text.Digestive.Types

Methods

(>>=) :: Result v a -> (a -> Result v b) -> Result v b #

(>>) :: Result v a -> Result v b -> Result v b #

return :: a -> Result v a #

fail :: String -> Result v a #

Functor (Result v) 
Instance details

Defined in Text.Digestive.Types

Methods

fmap :: (a -> b) -> Result v a -> Result v b #

(<$) :: a -> Result v b -> Result v a #

Monoid v => Applicative (Result v) 
Instance details

Defined in Text.Digestive.Types

Methods

pure :: a -> Result v a #

(<*>) :: Result v (a -> b) -> Result v a -> Result v b #

liftA2 :: (a -> b -> c) -> Result v a -> Result v b -> Result v c #

(*>) :: Result v a -> Result v b -> Result v b #

(<*) :: Result v a -> Result v b -> Result v a #

(Show a, Show v) => Show (Result v a) 
Instance details

Defined in Text.Digestive.Types

Methods

showsPrec :: Int -> Result v a -> ShowS #

show :: Result v a -> String #

showList :: [Result v a] -> ShowS #