Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.JobsUi
Synopsis
- data Result v a
- data JobType = JobType {
- getJobInfo :: JobInfo a
- data ParamInputType
- = TextInput
- | TextOptions (IO [Text])
- data Param = Param {
- paramDesc :: Text
- paramInputType :: ParamInputType
- paramValidation :: Text -> IO (Result Text Text)
- data JobInfo a = JobInfo {}
- run :: Port -> [JobType] -> IO ()
- lookupIO :: Show a => Eq a => a -> [(a, b)] -> IO b
Documentation
A mostly internally used type for representing Success/Error, with a special applicative instance
Existential type for job. Let's us ignore the job payload internally.
Constructors
JobType | |
Fields
|
Defines a parameter for the user
Constructors
Param | |
Fields
|
JobInfo is a description a job a user can run
@a
@ is the structure built from the parameters.
Constructors
JobInfo | |
Fields
|
This function launches the website. It get's a Map of named job types which are used to define different kinds of jobs a user can select to run.