Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Define a job type: a description of a task a user can run.
Synopsis
- 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 {}
- data Result v a
Documentation
Existential type for job. Let's us ignore the job payload internally.
JobType | |
|
Defines a parameter for the user
Param | |
|
JobInfo is a description a job a user can run
@a
@ is the structure built from the parameters.
JobInfo | |
|