-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Pure bindings for the MaxMind IP database. -- -- GeoIp is a pure haskell binding to the MaxMind IP database. The IP -- database contains information such as the approximate longitude and -- latitude of an IP address. @package GeoIp @version 0.2 -- | This module loads the MaxMind's GeoIp City database. module Network.GeoIp.GeoCityIp data GeoCityDB -- | Load the city database. If an error is triggered then Left is returned -- with an error string. load :: FilePath -> IO (Either String GeoCityDB) -- | Find the IP range that the IP address is in. The result is monadic. In -- most cases you will want to use the Maybe monad. findRange :: (Monad m) => GeoCityDB -> Integer -> m (Integer, Integer) -- | Find the location of an IP address. The tuple returned is -- (latitude, longitude). The result is monadic, in most cases -- you will want to use the Maybe monad. findLocation :: (Monad m) => GeoCityDB -> Integer -> m (Double, Double)