Skip to content

Commit

Permalink
add a bit of doc
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin committed Jul 3, 2024
1 parent 53c3259 commit 3fd04b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/GitHub/Workflow/Command/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ module GitHub.Workflow.Command.Syntax
, Message

-- * Working with commands
, TextIso (..)
, command
, HasMessage (..)
, property
, TextIso (..)
, HasMessage (..)
, HasProperties (..)

-- * Printing commands
Expand Down
5 changes: 5 additions & 0 deletions library/GitHub/Workflow/Command/Syntax/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ instance HasMessage Command where
instance HasProperties Command where
properties = lens (.properties) \x y -> x {properties = y}

-- | Construct a minimal command with a command 'Name' e.g. "warning" or "error"
--
-- See the 'GitHub.Workflow.Command.Syntax.Properties.property' and
-- 'GitHub.Workflow.Command.Syntax.Message.message' lenses for other
-- information include in a command.
command :: Name -> Command
command x =
Command
Expand Down

0 comments on commit 3fd04b7

Please sign in to comment.