Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Simplified model for RFC 8288 links.
Synopsis
- data Link = Link {}
- data Relation
- parseRelation :: Text -> Maybe Relation
- data MediaType = MediaType {
- _mediaType :: Text
- _mediaSubtype :: Text
- _mediaSuffix :: Text
- _mediaParameters :: [Text]
- parseMediaType :: Stream s Identity Char => s -> Maybe MediaType
- pattern MediaTypeRSS :: [Text] -> MediaType
- pattern MediaTypeAtom :: [Text] -> MediaType
- pattern MediaTypeApplicationXML :: Text -> [Text] -> MediaType
- pattern MediaTypeTextXML :: Text -> [Text] -> MediaType
- pattern MediaTypeHTML :: Text -> [Text] -> MediaType
Documentation
Link | |
|
Instances
FromJSON Link Source # | |
ToJSON Link Source # | |
Generic Link Source # | |
Show Link Source # | |
Eq Link Source # | |
Ord Link Source # | |
type Rep Link Source # | |
Defined in Imm.Link type Rep Link = D1 ('MetaData "Link" "Imm.Link" "imm-2.1.3.0-D3c8Vn1SRDNHimeVgBOHyG" 'False) (C1 ('MetaCons "Link" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_linkRelation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Relation)) :*: S1 ('MetaSel ('Just "_linkTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_linkType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe MediaType)) :*: S1 ('MetaSel ('Just "_linkURI") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AnyURI)))) |
Instances
FromJSON Relation Source # | |
ToJSON Relation Source # | |
Generic Relation Source # | |
Read Relation Source # | |
Show Relation Source # | |
Eq Relation Source # | |
Ord Relation Source # | |
type Rep Relation Source # | |
Defined in Imm.Link type Rep Relation = D1 ('MetaData "Relation" "Imm.Link" "imm-2.1.3.0-D3c8Vn1SRDNHimeVgBOHyG" 'False) ((C1 ('MetaCons "Alternate" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Edit" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Next" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "NoFollow" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Replies" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Self" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OtherRelation" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))) |
MediaType | |
|
Instances
FromJSON MediaType Source # | |
ToJSON MediaType Source # | |
Generic MediaType Source # | |
Read MediaType Source # | |
Show MediaType Source # | |
Eq MediaType Source # | |
Ord MediaType Source # | |
Defined in Imm.Link | |
type Rep MediaType Source # | |
Defined in Imm.Link type Rep MediaType = D1 ('MetaData "MediaType" "Imm.Link" "imm-2.1.3.0-D3c8Vn1SRDNHimeVgBOHyG" 'False) (C1 ('MetaCons "MediaType" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_mediaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_mediaSubtype") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "_mediaSuffix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "_mediaParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Text])))) |
pattern MediaTypeRSS :: [Text] -> MediaType Source #
pattern MediaTypeAtom :: [Text] -> MediaType Source #