hercules-ci-api-agent-0.5.0.0: API definition for Hercules CI Agent to talk to hercules-ci.com or Hercules CI Enterprise
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Task

Synopsis

Documentation

data Task a Source #

A task, typically performed by the agent.

The phantom represents the type of task. See AnyTask.

Constructors

Task 

Fields

Instances

Instances details
FromJSON (Task a) Source # 
Instance details

Defined in Hercules.API.Task

ToJSON (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Generic (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Associated Types

type Rep (Task a) :: Type -> Type #

Methods

from :: Task a -> Rep (Task a) x #

to :: Rep (Task a) x -> Task a #

Show (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Methods

showsPrec :: Int -> Task a -> ShowS #

show :: Task a -> String #

showList :: [Task a] -> ShowS #

NFData (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Methods

rnf :: Task a -> () #

Eq (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Methods

(==) :: Task a -> Task a -> Bool #

(/=) :: Task a -> Task a -> Bool #

type Rep (Task a) Source # 
Instance details

Defined in Hercules.API.Task

type Rep (Task a) = D1 ('MetaData "Task" "Hercules.API.Task" "hercules-ci-api-agent-0.5.0.0-inplace" 'False) (C1 ('MetaCons "Task" 'PrefixI 'True) (S1 ('MetaSel ('Just "typ") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Id (Task a)))))

data Any Source #

@Task Any represents tasks whose type has not yet been read.

upcast :: Task a -> Task Any Source #

Safe type cast.

upcastId :: Id (Task a) -> Id (Task Any) Source #

Safe type cast.