Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CustomField
- = CustomNumber Gid Text (Maybe Scientific)
- | CustomEnum Gid Text [EnumOption] (Maybe Text)
- | CustomText Gid Text (Maybe Text)
- | Other
- newtype CustomFields = CustomFields {}
- customEnumId :: CustomField -> Maybe Gid
- data EnumOption = EnumOption {}
- putCustomField :: (MonadUnliftIO m, MonadLogger m, MonadReader env m, HasAsanaAccessKey env) => Gid -> CustomField -> m ()
- putCustomFields :: (MonadUnliftIO m, MonadLogger m, MonadReader env m, HasAsanaAccessKey env) => Gid -> CustomFields -> m ()
Documentation
data CustomField Source #
CustomNumber Gid Text (Maybe Scientific) | |
CustomEnum Gid Text [EnumOption] (Maybe Text) | |
CustomText Gid Text (Maybe Text) | |
Other | Unexpected types dumped here |
Instances
newtype CustomFields Source #
Instances
FromJSON CustomFields Source # | |
Defined in Asana.Api.CustomField parseJSON :: Value -> Parser CustomFields # parseJSONList :: Value -> Parser [CustomFields] # | |
ToJSON CustomFields Source # | |
Defined in Asana.Api.CustomField toJSON :: CustomFields -> Value # toEncoding :: CustomFields -> Encoding # toJSONList :: [CustomFields] -> Value # toEncodingList :: [CustomFields] -> Encoding # omitField :: CustomFields -> Bool # | |
Show CustomFields Source # | |
Defined in Asana.Api.CustomField showsPrec :: Int -> CustomFields -> ShowS # show :: CustomFields -> String # showList :: [CustomFields] -> ShowS # | |
Eq CustomFields Source # | |
Defined in Asana.Api.CustomField (==) :: CustomFields -> CustomFields -> Bool # (/=) :: CustomFields -> CustomFields -> Bool # |
customEnumId :: CustomField -> Maybe Gid Source #
Return a
s value's Enum id, if possibleCustomField
- Must be a
CustomEnum
- Must have a value
- Must have an option with the same name as that value
data EnumOption Source #
Instances
putCustomField :: (MonadUnliftIO m, MonadLogger m, MonadReader env m, HasAsanaAccessKey env) => Gid -> CustomField -> m () Source #
putCustomFields :: (MonadUnliftIO m, MonadLogger m, MonadReader env m, HasAsanaAccessKey env) => Gid -> CustomFields -> m () Source #