influxdb 1.2.1 → 1.2.2
raw patch · 4 files changed
+11/−5 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Database.InfluxDB.Types: instance GHC.Classes.Ord Database.InfluxDB.Types.Server
Files
- CHANGELOG.md +5/−0
- influxdb.cabal +2/−2
- src/Database/InfluxDB.hs +2/−1
- src/Database/InfluxDB/Types.hs +2/−2
CHANGELOG.md view
@@ -1,3 +1,8 @@+## v1.2.2 - 2017-06-26++* A couple of documentation fixes+* Add `Ord` instance for `Server`+ ## v1.2.1 - 2017-06-19 * Export `formatDatabase` and `formatKey` from `Database.InfluxDB` for convenience
influxdb.cabal view
@@ -1,5 +1,5 @@ name: influxdb-version: 1.2.1+version: 1.2.2 synopsis: Haskell client library for InfluxDB description: @influxdb@ is a Haskell client library for InfluxDB.@@ -142,5 +142,5 @@ source-repository this type: git- tag: v1.2.1+ tag: v1.2.2 location: https://github.com/maoe/influxdb-haskell.git
src/Database/InfluxDB.hs view
@@ -119,7 +119,7 @@ parameters of type @Maybe 'Credentials'@. Also note that in order to construct a 'Query', we use 'formatQuery' with the-'F.database' formatter. There are many other formatter defined in+'F.database' formatter. There are many other formatters defined in "Database.InfluxDB.Format". >>> let db = "square_holes"@@ -144,6 +144,7 @@ ]) (Nothing :: Maybe UTCTime) ]+:} Note that the type signature of the timestamp is necessary. Otherwise it doesn't type check.
src/Database/InfluxDB/Types.hs view
@@ -58,7 +58,7 @@ { _host :: !Text , _port :: !Int , _ssl :: !Bool- } deriving (Show, Generic, Eq)+ } deriving (Show, Generic, Eq, Ord) -- | Default server settings. --@@ -117,7 +117,7 @@ -- | String type that is used for measurements, tag keys and field keys. ----- 'Database.InfluxDB.formatkey' can be used to construct a 'Key'.+-- 'Database.InfluxDB.formatKey' can be used to construct a 'Key'. newtype Key = Key Text deriving (Eq, Ord) instance IsString Database where