ip2location 8.0.3 → 8.0.4
raw patch · 3 files changed
+9/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ IP2Location: IP2LocationRecord :: String -> String -> String -> String -> String -> Float -> Float -> String -> String -> String -> String -> String -> String -> String -> String -> String -> String -> String -> Float -> String -> IP2LocationRecord
+ IP2Location: [areacode] :: IP2LocationRecord -> String
+ IP2Location: [city] :: IP2LocationRecord -> String
+ IP2Location: [country_long] :: IP2LocationRecord -> String
+ IP2Location: [country_short] :: IP2LocationRecord -> String
+ IP2Location: [domain] :: IP2LocationRecord -> String
+ IP2Location: [elevation] :: IP2LocationRecord -> Float
+ IP2Location: [iddcode] :: IP2LocationRecord -> String
+ IP2Location: [isp] :: IP2LocationRecord -> String
+ IP2Location: [latitude] :: IP2LocationRecord -> Float
+ IP2Location: [longitude] :: IP2LocationRecord -> Float
+ IP2Location: [mcc] :: IP2LocationRecord -> String
+ IP2Location: [mnc] :: IP2LocationRecord -> String
+ IP2Location: [mobilebrand] :: IP2LocationRecord -> String
+ IP2Location: [netspeed] :: IP2LocationRecord -> String
+ IP2Location: [region] :: IP2LocationRecord -> String
+ IP2Location: [timezone] :: IP2LocationRecord -> String
+ IP2Location: [usagetype] :: IP2LocationRecord -> String
+ IP2Location: [weatherstationcode] :: IP2LocationRecord -> String
+ IP2Location: [weatherstationname] :: IP2LocationRecord -> String
+ IP2Location: [zipcode] :: IP2LocationRecord -> String
Files
- ChangeLog.md +5/−1
- IP2Location.hs +2/−2
- ip2location.cabal +2/−2
ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for ip2location -## 8.0.3 -- YYYY-mm-dd+## 8.0.3 -- 2016-10-10 * First version. Released on an unsuspecting world.++## 8.0.4 -- 2016-10-10++* Fixed export for IP2Location record functions
IP2Location.hs view
@@ -14,7 +14,7 @@ IP2Location LITE BIN databases are available for free at http://lite.ip2location.com/ -} -module IP2Location (Meta, IP2LocationRecord, getAPIVersion, doInit, doQuery) where +module IP2Location (Meta, IP2LocationRecord(..), getAPIVersion, doInit, doQuery) where import qualified Data.ByteString.Lazy as BS import qualified Data.ByteString.Lazy.Char8 as BS8 @@ -119,7 +119,7 @@ The 'getAPIVersion' function returns a string containing the API version. -} getAPIVersion :: String -getAPIVersion = "8.0.3" +getAPIVersion = "8.0.4" ipToOcts :: IP -> [Int] ipToOcts (IPv4 ip) = fromIPv4 ip
ip2location.cabal view
@@ -10,13 +10,13 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 8.0.3+version: 8.0.4 -- A short (one-line) description of the package. synopsis: IP2Location Haskell package for IP geolocation. -- A longer description of the package.--- description: This Haskell package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, elevation, and usage type from IP address by using IP2Location database. This package uses a file based database available at IP2Location.com. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, elevation, and usage type as values. It supports both IP addresses in IPv4 and IPv6.+-- description: This Haskell package provides a fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, elevation, and usage type from IP address by using IP2Location database. This package uses a file based database available at IP2Location.com. This database simply contains IP blocks as keys, and other information such as country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection type, IDD code, area code, weather station code, weather station name, mcc, mnc, mobile brand, elevation, and usage type as values. It supports both IP addresses in IPv4 and IPv6. -- URL for the project homepage or repository. homepage: http://www.ip2location.com