-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A library for parsing User-Agent strings, official Haskell port of ua-parser -- -- Please refer to the git/github README on the project for example -- usage. @package ua-parser @version 0.5 module Web.UAParser -- | Parse a given User-Agent string parseUA :: ByteString -> Maybe UAResult -- | Results datatype for the parsed User-Agent data UAResult UAResult :: Text -> Maybe Text -> Maybe Text -> Maybe Text -> UAResult uarFamily :: UAResult -> Text uarV1 :: UAResult -> Maybe Text uarV2 :: UAResult -> Maybe Text uarV3 :: UAResult -> Maybe Text -- | Construct a browser version-string from UAResult uarVersion :: UAResult -> Text -- | Parse OS from given User-Agent string parseOS :: ByteString -> Maybe OSResult -- | Result type for parseOS data OSResult OSResult :: Text -> Maybe Text -> Maybe Text -> Maybe Text -> Maybe Text -> OSResult osrFamily :: OSResult -> Text osrV1 :: OSResult -> Maybe Text osrV2 :: OSResult -> Maybe Text osrV3 :: OSResult -> Maybe Text osrV4 :: OSResult -> Maybe Text -- | Construct a version string from OSResult osrVersion :: OSResult -> Text instance Typeable UAResult instance Typeable OSResult instance Show UAResult instance Read UAResult instance Eq UAResult instance Data UAResult instance Show OSResult instance Read OSResult instance Eq OSResult instance Data OSResult instance Eq UAParser instance Show UAParser instance Eq OSParser instance Show OSParser instance Eq DevParser instance Show DevParser instance Eq UAConfig instance Show UAConfig instance FromJSON DevParser instance FromJSON OSParser instance FromJSON UAParser instance FromJSON UAConfig instance Default OSResult instance Default UAResult