Safe Haskell | None |
---|---|
Language | Haskell2010 |
The route type Why I did this I don't know
Documentation
mkRouteBuilder :: RouteBuilder '[] Source #
giveID :: forall k ids. Typeable k => Snowflake k -> RouteBuilder ids -> RouteBuilder ('(k, 'Satisfied) ': ids) Source #
buildRoute :: forall (ids :: [(Type, RouteRequirement)]). EnsureFulfilled ids => RouteBuilder ids -> Route Source #
data RouteBuilder (idState :: [(Type, RouteRequirement)]) Source #
data RouteRequirement Source #
Instances
Instances
Eq Route Source # | |
Show Route Source # | |
Generic Route Source # | |
Hashable Route Source # | |
Defined in Calamity.HTTP.Internal.Route | |
type Rep Route Source # | |
Defined in Calamity.HTTP.Internal.Route type Rep Route = D1 ('MetaData "Route" "Calamity.HTTP.Internal.Route" "calamity-0.1.10.1-inplace" 'False) (C1 ('MetaCons "Route" 'PrefixI 'True) ((S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "channelID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake Channel))) :*: S1 ('MetaSel ('Just "guildID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Snowflake Guild)))))) |
Instances
RouteFragmentable S ids Source # | |
type ConsRes S ids Source # | |
Defined in Calamity.HTTP.Internal.Route |
class Typeable a => RouteFragmentable a ids where Source #
(//) :: RouteBuilder ids -> a -> ConsRes a ids infixl 5 Source #
Instances
RouteFragmentable S ids Source # | |
Typeable a => RouteFragmentable (ID a) ids Source # | |