Safe Haskell | None |
---|---|
Language | Haskell2010 |
- parseUA :: ByteString -> Maybe UAResult
- parseUALenient :: ByteString -> UAResult
- data UAResult = UAResult {}
- uarVersion :: UAResult -> Text
- parseOS :: ByteString -> Maybe OSResult
- parseOSLenient :: ByteString -> OSResult
- data OSResult = OSResult {}
- osrVersion :: OSResult -> Text
- parseDev :: ByteString -> Maybe DevResult
- parseDevLenient :: ByteString -> DevResult
- data DevResult = DevResult {}
Parsing browser (user agent)
parseUA :: ByteString -> Maybe UAResult Source
Parse a given User-Agent string
parseUALenient :: ByteString -> UAResult Source
Parser that, upon failure to match a pattern returns a result of family Other with all other fields blank. This is mainly for compatibility with the uap-core test suite
Results datatype for the parsed User-Agent
uarVersion :: UAResult -> Text Source
Construct a browser version-string from UAResult
Parsing OS
parseOS :: ByteString -> Maybe OSResult Source
Parse OS from given User-Agent string
parseOSLenient :: ByteString -> OSResult Source
Parser that, upon failure to match a pattern returns a result of family Other with all other fields blank. This is mainly for compatibility with the uap-core test suite
osrVersion :: OSResult -> Text Source
Construct a version string from OSResult
Parsing Dev
parseDev :: ByteString -> Maybe DevResult Source
parseDevLenient :: ByteString -> DevResult Source
Parser that, upon failure to match a pattern returns a result of family Other with all other fields blank. This is mainly for compatibility with the uap-core test suite