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)
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
Parsing OS
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
Parsing Dev
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