Copyright | (c) 2021 Rory Tyler Hayford |
---|---|
License | BSD-3-Clause |
Maintainer | rory.hayford@protonmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Multireddit = Multireddit {}
- data MultiName
- mkMultiName :: MonadThrow m => Text -> m MultiName
- data MultiVisibility
- data MultiPath = MultiPath {}
- data NewMultiF f = NewMultiF {
- description :: HKD f Body
- displayName :: HKD f Text
- subreddits :: HKD f (Seq SubredditName)
- visibility :: HKD f MultiVisibility
- keyColor :: Maybe RGBText
- type NewMulti = NewMultiF Identity
- type MultiUpdate = NewMultiF Maybe
- multiUpdate :: Multireddit -> MultiUpdate
- defaultMultiUpdate :: MultiUpdate
Documentation
data Multireddit Source #
An aggregation of individual Subreddit
s
Multireddit | |
|
Instances
The name of a Multireddit
, which may only contain alphanumeric characters
Instances
Eq MultiName Source # | |
Show MultiName Source # | |
Generic MultiName Source # | |
FromJSON MultiName Source # | |
ToHttpApiData MultiName Source # | |
Defined in Network.Reddit.Types.Multireddit toUrlPiece :: MultiName -> Text # toEncodedUrlPiece :: MultiName -> Builder # toHeader :: MultiName -> ByteString # toQueryParam :: MultiName -> Text # | |
type Rep MultiName Source # | |
Defined in Network.Reddit.Types.Multireddit |
mkMultiName :: MonadThrow m => Text -> m MultiName Source #
Smart constructor for MultiName
s, which may only contain alphanumeric
characters
data MultiVisibility Source #
The configured visibility level for a Multireddit
Instances
The path to a Multireddit
, of the form /user/USERNAME/m/MULTINAME
Instances
Eq MultiPath Source # | |
Show MultiPath Source # | |
Generic MultiPath Source # | |
FromJSON MultiPath Source # | |
ToHttpApiData MultiPath Source # | |
Defined in Network.Reddit.Types.Multireddit toUrlPiece :: MultiPath -> Text # toEncodedUrlPiece :: MultiPath -> Builder # toHeader :: MultiPath -> ByteString # toQueryParam :: MultiPath -> Text # | |
type Rep MultiPath Source # | |
Defined in Network.Reddit.Types.Multireddit type Rep MultiPath = D1 ('MetaData "MultiPath" "Network.Reddit.Types.Multireddit" "heddit-0.0.1-76ROQ5tOAm3CpLSaFw8ccb" 'False) (C1 ('MetaCons "MultiPath" 'PrefixI 'True) (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Username) :*: S1 ('MetaSel ('Just "multiname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MultiName))) |
Can represent either a new multireddit when parameterized by Identity
, or
a multireddit update when parameterized by Maybe
. In both cases, keyColor
is an optional field
NewMultiF | |
|
Instances
type MultiUpdate = NewMultiF Maybe Source #
An update to a multireddit, where all fields are optional. If a field is not provided, it is omitted during JSON encoding
multiUpdate :: Multireddit -> MultiUpdate Source #
Convert a Multireddit
to a MultiUpdate
defaultMultiUpdate :: MultiUpdate Source #
A MultiUpdate
with all Nothing
fields, for convenience