hercules-ci-api-agent-0.2.2.0: API definition for Hercules CI Agent to talk to hercules-ci.com or Hercules CI Enterprise

Safe HaskellNone
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
Eq (Task a) Source # 
Instance details

Defined in Hercules.API.Task

Methods

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

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

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 #

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 #

ToJSON (Task a) Source # 
Instance details

Defined in Hercules.API.Task

FromJSON (Task a) Source # 
Instance details

Defined in Hercules.API.Task

ToSchema (Task a) Source # 
Instance details

Defined in Hercules.API.Task

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.2.2.0-H8XBgIW1mHxGazLTBa2ark" 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.