| Copyright | (c) 2025 Bellroy Pty Ltd |
|---|---|
| License | BSD-3-Clause |
| Maintainer | Bellroy Tech Team <haskell@bellroy.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Github.Actions.UnstructuredMap
Description
This module provides the UnstructuredMap type for representing a map of
values that can be strings, numbers, or booleans in GitHub Actions YAML files.
GitHub Actions allows flexible typing in many contexts:
* retention-days: 1 (number)
* retention-days: "1" (string)
* should-retain: false (boolean)
This type preserves the original YAML type during round-trip parsing, ensuring that numeric values remain numeric and strings remain strings.
Synopsis
Documentation
data UnstructuredValue Source #
A map that can have values of string, number, or boolean.
This type is designed to handle the flexible typing that GitHub Actions allows in YAML files.
The type preserves the original format during round-trip serialization, so numeric inputs remain numeric in the output YAML.
Instances
newtype UnstructuredMap Source #
Constructors
| UnstructuredMap (Map Text UnstructuredValue) |
Instances
| FromJSON UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Methods parseJSON :: Value -> Parser UnstructuredMap # parseJSONList :: Value -> Parser [UnstructuredMap] # | |||||
| ToJSON UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Methods toJSON :: UnstructuredMap -> Value # toEncoding :: UnstructuredMap -> Encoding # toJSONList :: [UnstructuredMap] -> Value # toEncodingList :: [UnstructuredMap] -> Encoding # omitField :: UnstructuredMap -> Bool # | |||||
| Generic UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Associated Types
Methods from :: UnstructuredMap -> Rep UnstructuredMap x # to :: Rep UnstructuredMap x -> UnstructuredMap # | |||||
| Show UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Methods showsPrec :: Int -> UnstructuredMap -> ShowS # show :: UnstructuredMap -> String # showList :: [UnstructuredMap] -> ShowS # | |||||
| Eq UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Methods (==) :: UnstructuredMap -> UnstructuredMap -> Bool # (/=) :: UnstructuredMap -> UnstructuredMap -> Bool # | |||||
| Ord UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap Methods compare :: UnstructuredMap -> UnstructuredMap -> Ordering # (<) :: UnstructuredMap -> UnstructuredMap -> Bool # (<=) :: UnstructuredMap -> UnstructuredMap -> Bool # (>) :: UnstructuredMap -> UnstructuredMap -> Bool # (>=) :: UnstructuredMap -> UnstructuredMap -> Bool # max :: UnstructuredMap -> UnstructuredMap -> UnstructuredMap # min :: UnstructuredMap -> UnstructuredMap -> UnstructuredMap # | |||||
| type Rep UnstructuredMap Source # | |||||
Defined in Language.Github.Actions.UnstructuredMap type Rep UnstructuredMap = D1 ('MetaData "UnstructuredMap" "Language.Github.Actions.UnstructuredMap" "github-actions-0.1.1.0-BjHhRMO6iQ17qdsNXwhDab" 'True) (C1 ('MetaCons "UnstructuredMap" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text UnstructuredValue)))) | |||||
gen :: MonadGen m => m UnstructuredMap Source #