Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class StringRepr a where
- renderText :: StringRepr a => a -> Text
- renderString :: StringRepr a => a -> String
- parseShortText :: StringRepr a => ShortText -> Maybe a
- parseText :: StringRepr a => Text -> Maybe a
- parseString :: StringRepr a => String -> Maybe a
Documentation
class StringRepr a where Source #
Convert to and from string representations as defined by RFC4515.
Since: 0.1.0
asParsec :: Stream s Identity Char => Parsec s () a Source #
asBuilder :: a -> Builder Source #
renderShortText :: a -> ShortText Source #
Instances
StringRepr MatchingRuleId Source # | |
Defined in LDAPv3.StringRepr | |
StringRepr KeyString Source # | |
StringRepr OID Source # | |
StringRepr Option Source # | |
StringRepr AttributeDescription Source # | |
Defined in LDAPv3.StringRepr asParsec :: Stream s Identity Char => Parsec s () AttributeDescription Source # asBuilder :: AttributeDescription -> Builder Source # renderShortText :: AttributeDescription -> ShortText Source # | |
StringRepr Filter Source # | |
renderText :: StringRepr a => a -> Text Source #
Convenience StringRepr
operation for rendering as Text
Since: 0.1.0
renderString :: StringRepr a => a -> String Source #
Convenience StringRepr
operation for rendering as plain-old String
Since: 0.1.0
parseShortText :: StringRepr a => ShortText -> Maybe a Source #
Convenience StringRepr
operation for parsing from ShortText
Since: 0.1.0
parseText :: StringRepr a => Text -> Maybe a Source #
Convenience StringRepr
operation for parsing from Text
Since: 0.1.0
parseString :: StringRepr a => String -> Maybe a Source #
Convenience StringRepr
operation for parsing from plain-old String
Since: 0.1.0