log-elasticsearch 0.10.0.1 → 0.10.1.0
raw patch · 4 files changed
+26/−14 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Log.Backend.ElasticSearch.V1.Internal: instance GHC.Generics.Generic Log.Backend.ElasticSearch.V1.Internal.ElasticSearchConfig
+ Log.Backend.ElasticSearch.V5.Internal: instance GHC.Generics.Generic Log.Backend.ElasticSearch.V5.Internal.ElasticSearchConfig
Files
- CHANGELOG.md +4/−1
- log-elasticsearch.cabal +2/−2
- src/Log/Backend/ElasticSearch/V1/Internal.hs +17/−10
- src/Log/Backend/ElasticSearch/V5/Internal.hs +3/−1
CHANGELOG.md view
@@ -1,4 +1,7 @@-# log-elasticsearch-0.10.0.1 (2019-01-14)+# log-elasticsearch-0.10.1.0 (2019-05-15)+* Add a Generic instance for ElasticSearchConfig.++# log-elasticsearch-0.10.0.1 (2019-01-24) * Compatibility with ES 6.x by using "text" instead of deprecated "string" # log-elasticsearch-0.10.0.0 (2018-03-28)
log-elasticsearch.cabal view
@@ -1,5 +1,5 @@ name: log-elasticsearch-version: 0.10.0.1+version: 0.10.1.0 synopsis: Structured logging solution (Elasticsearch back end) description: Elasticsearch back end for the 'log' library suite.@@ -19,7 +19,7 @@ cabal-version: >=1.10 extra-source-files: CHANGELOG.md, README.md tested-with: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4,- GHC == 8.6.2+ GHC == 8.6.5 Source-repository head Type: git
src/Log/Backend/ElasticSearch/V1/Internal.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE DeriveGeneric #-} module Log.Backend.ElasticSearch.V1.Internal (ElasticSearchConfig(..) ,defaultElasticSearchConfig@@ -6,6 +7,7 @@ where import Database.V1.Bloodhound hiding (Status)+import GHC.Generics (Generic) import Prelude import qualified Data.Text as T @@ -15,16 +17,21 @@ data ElasticSearchConfig = ElasticSearchConfig { esServer :: !T.Text -- ^ Elasticsearch server address. , esIndex :: !T.Text -- ^ Elasticsearch index name.- , esShardCount :: !Int -- ^ Elasticsearch shard count for the named index.- --- -- @since 0.10.0.0- , esReplicaCount :: !Int -- ^ Elasticsearch replica count for the named index.- --- -- @since 0.10.0.0- , esMapping :: !T.Text -- ^ Elasticsearch mapping name.- , esLogin :: Maybe (EsUsername, EsPassword) -- ^ Elasticsearch basic authentication username and password.- , esLoginInsecure :: !Bool -- ^ Allow basic authentication over non-TLS connections.- } deriving (Eq, Show)+ , esShardCount :: !Int+ -- ^ Elasticsearch shard count for the named index.+ --+ -- @since 0.10.0.0+ , esReplicaCount :: !Int+ -- ^ Elasticsearch replica count for the named index.+ --+ -- @since 0.10.0.0+ , esMapping :: !T.Text+ -- ^ Elasticsearch mapping name.+ , esLogin :: Maybe (EsUsername, EsPassword)+ -- ^ Elasticsearch basic authentication username and password.+ , esLoginInsecure :: !Bool+ -- ^ Allow basic authentication over non-TLS connections.+ } deriving (Eq, Show, Generic) -- | Sensible defaults for 'ElasticSearchConfig'. defaultElasticSearchConfig :: ElasticSearchConfig
src/Log/Backend/ElasticSearch/V5/Internal.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE DeriveGeneric #-} module Log.Backend.ElasticSearch.V5.Internal (ElasticSearchConfig(..) ,defaultElasticSearchConfig@@ -6,6 +7,7 @@ where import Database.V5.Bloodhound hiding (Status)+import GHC.Generics (Generic) import Prelude import qualified Data.Text as T @@ -29,7 +31,7 @@ -- ^ Elasticsearch basic authentication username and password. , esLoginInsecure :: !Bool -- ^ Allow basic authentication over non-TLS connections.- } deriving (Eq, Show)+ } deriving (Eq, Show, Generic) -- | Sensible defaults for 'ElasticSearchConfig'. defaultElasticSearchConfig :: ElasticSearchConfig