Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
GitHub.Workflow.Command.Syntax
Synopsis
- data Command
- command :: Name -> Command
- class ToCommand a where
- addToCommand :: a -> Command -> Command
- toCommand :: ToCommand a => a -> Command
- newtype Name = Name {}
- class HasName a where
- newtype Message = Message {}
- class HasMessage a where
- class FromMessage a where
- fromMessage :: Message -> a
- data Properties
- newtype Key = Key {}
- newtype Value = Value {}
- property :: HasProperties a => Key -> Lens' a (Maybe Value)
- class HasProperties a where
- properties :: Lens' a Properties
- class AddToProperties a where
- addToProperties :: a -> Properties -> Properties
- class ToByteString a where
- toByteStringBuilder :: a -> Builder
- toByteString :: a -> ByteString
- newtype ByteStringViaCommand a = ByteStringViaCommand a
- printByteStringLn :: (ToByteString a, MonadIO m) => a -> m ()
Command
A GitHub workflow command
A Command
consists of:
Of these, only Name
is always required. Some particular types of command require
a message or have restrictions on what properties they support or require.
Instances
IsString Command Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command Methods fromString :: String -> Command # | |
Show Command Source # | |
Eq Command Source # | |
Ord Command Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command | |
HasMessage Command Source # | |
HasName Command Source # | |
HasProperties Command Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command Methods | |
ToByteString Command Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command Methods toByteStringBuilder :: Command -> Builder Source # toByteString :: Command -> ByteString Source # |
class ToCommand a where Source #
Methods
addToCommand :: a -> Command -> Command Source #
Instances
ToCommand Debug Source # | |
ToCommand Error Source # | |
ToCommand Notice Source # | |
ToCommand Warning Source # | |
ToCommand GroupEnd Source # | |
Defined in GitHub.Workflow.Command.Grouping | |
ToCommand GroupStart Source # | |
Defined in GitHub.Workflow.Command.Grouping Methods addToCommand :: GroupStart -> Command -> Command Source # | |
ToCommand AddMask Source # | |
Defined in GitHub.Workflow.Command.Masking | |
ToCommand ResumeCommands Source # | |
Defined in GitHub.Workflow.Command.Stopping Methods addToCommand :: ResumeCommands -> Command -> Command Source # | |
ToCommand StopCommands Source # | |
Defined in GitHub.Workflow.Command.Stopping Methods addToCommand :: StopCommands -> Command -> Command Source # | |
(IsAnnotationType a, HasMessage a, GetProperties a) => ToCommand (GenericAnnotation a) Source # | |
Defined in GitHub.Workflow.Command.Annotation.Commands.Generic Methods addToCommand :: GenericAnnotation a -> Command -> Command Source # |
Name
Message
Instances
IsString Message Source # | |
Defined in GitHub.Workflow.Command.Syntax.Message Methods fromString :: String -> Message # | |
Show Message Source # | |
Eq Message Source # | |
Ord Message Source # | |
Defined in GitHub.Workflow.Command.Syntax.Message | |
FromMessage Message Source # | |
Defined in GitHub.Workflow.Command.Syntax.Message Methods fromMessage :: Message -> Message Source # | |
HasMessage Message Source # | |
ToByteString Message Source # | |
Defined in GitHub.Workflow.Command.Syntax.Message Methods toByteStringBuilder :: Message -> Builder Source # toByteString :: Message -> ByteString Source # |
class HasMessage a where Source #
class FromMessage a where Source #
Methods
fromMessage :: Message -> a Source #
Instances
FromMessage Debug Source # | |
Defined in GitHub.Workflow.Command.Annotation.Commands.Debug Methods fromMessage :: Message -> Debug Source # | |
FromMessage Error Source # | |
Defined in GitHub.Workflow.Command.Annotation.Commands.Error Methods fromMessage :: Message -> Error Source # | |
FromMessage Notice Source # | |
Defined in GitHub.Workflow.Command.Annotation.Commands.Notice Methods fromMessage :: Message -> Notice Source # | |
FromMessage Warning Source # | |
Defined in GitHub.Workflow.Command.Annotation.Commands.Warning Methods fromMessage :: Message -> Warning Source # | |
FromMessage Message Source # | |
Defined in GitHub.Workflow.Command.Syntax.Message Methods fromMessage :: Message -> Message Source # |
Properties
data Properties Source #
Instances
Show Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties Methods showsPrec :: Int -> Properties -> ShowS # show :: Properties -> String # showList :: [Properties] -> ShowS # | |
Eq Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties | |
Ord Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties Methods compare :: Properties -> Properties -> Ordering # (<) :: Properties -> Properties -> Bool # (<=) :: Properties -> Properties -> Bool # (>) :: Properties -> Properties -> Bool # (>=) :: Properties -> Properties -> Bool # max :: Properties -> Properties -> Properties # min :: Properties -> Properties -> Properties # | |
HasProperties Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties Methods | |
ToByteString Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties Methods toByteStringBuilder :: Properties -> Builder Source # toByteString :: Properties -> ByteString Source # |
class HasProperties a where Source #
Methods
properties :: Lens' a Properties Source #
Instances
HasProperties Command Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command Methods | |
HasProperties Properties Source # | |
Defined in GitHub.Workflow.Command.Syntax.Properties Methods |
class AddToProperties a where Source #
Methods
addToProperties :: a -> Properties -> Properties Source #
Instances
AddToProperties Location Source # | |
Defined in GitHub.Workflow.Command.Annotation.Location Methods addToProperties :: Location -> Properties -> Properties Source # | |
AddToProperties Position Source # | |
Defined in GitHub.Workflow.Command.Annotation.Position Methods addToProperties :: Position -> Properties -> Properties Source # | |
AddToProperties Columns Source # | |
Defined in GitHub.Workflow.Command.Annotation.Position.Columns Methods addToProperties :: Columns -> Properties -> Properties Source # | |
AddToProperties Extent Source # | |
Defined in GitHub.Workflow.Command.Annotation.Position.Extent Methods addToProperties :: Extent -> Properties -> Properties Source # | |
AddToProperties Properties Source # | |
Defined in GitHub.Workflow.Command.Annotation.Properties Methods addToProperties :: Properties -> Properties0 -> Properties0 Source # |
Output
class ToByteString a where Source #
Minimal complete definition
Instances
newtype ByteStringViaCommand a Source #
Constructors
ByteStringViaCommand a |
Instances
ToCommand a => ToByteString (ByteStringViaCommand a) Source # | |
Defined in GitHub.Workflow.Command.Syntax.Command Methods toByteStringBuilder :: ByteStringViaCommand a -> Builder Source # toByteString :: ByteStringViaCommand a -> ByteString Source # |
printByteStringLn :: (ToByteString a, MonadIO m) => a -> m () Source #