Skip to content

Commit

Permalink
Update unleash-haskell-client-core to 0.8.4
Browse files Browse the repository at this point in the history
Export all fields from VariantResponse.
  • Loading branch information
evenbrenden committed Feb 6, 2023
1 parent f909f98 commit 39904a0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
unleash-client-haskell-core.url =
"github:finn-no/unleash-client-haskell-core?ref=0.8.2";
"github:finn-no/unleash-client-haskell-core?ref=0.8.4";
};
outputs =
{ self, nixpkgs, flake-compat, flake-utils, unleash-client-haskell-core }:
Expand Down
4 changes: 2 additions & 2 deletions src/Unleash/Client.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module Unleash.Client (
-- Re-exports
Context (..),
emptyContext,
VariantResponse,
VariantResponse (..),
) where

import Control.Concurrent.MVar
Expand All @@ -33,7 +33,7 @@ import Data.Text (Text)
import Data.Time (UTCTime, getCurrentTime)
import Network.HTTP.Client.TLS (newTlsManager)
import Servant.Client (BaseUrl, ClientEnv, ClientError, mkClientEnv)
import Unleash (Context (..), Features, MetricsPayload (..), RegisterPayload (..), VariantResponse, emptyContext, emptyVariantResponse, featureGetVariant, featureIsEnabled)
import Unleash (Context (..), Features, MetricsPayload (..), RegisterPayload (..), VariantResponse (..), emptyContext, emptyVariantResponse, featureGetVariant, featureIsEnabled)
import Unleash.Internal.HttpClient (getAllClientFeatures, register, sendMetrics)

-- | Smart constructor for Unleash client configuration. Initializes the mutable variables properly.
Expand Down
4 changes: 2 additions & 2 deletions src/Unleash/Internal/HttpClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Paths_unleash_client_haskell (version)
import Servant.API (Accept (contentTypes), Get, Header, JSON, MimeRender (mimeRender), NoContent, PostNoContent, ReqBody, type (:<|>) (..), type (:>))
import Servant.Client (ClientEnv, ClientError, client, runClientM)
import Unleash.Internal.DomainTypes (Features, fromJsonFeatures, supportedStrategies)
import Unleash.Internal.JsonTypes (FullMetricBucket (..), FullMetricsPayload (..), FullRegisterPayload (..), MetricsPayload, RegisterPayload, YesAndNoes (..))
import Unleash.Internal.JsonTypes (FullMetricsBucket (..), FullMetricsPayload (..), FullRegisterPayload (..), MetricsPayload, RegisterPayload, YesAndNoes (..))
import qualified Unleash.Internal.JsonTypes as UJT

type Register = "api" :> "client" :> "register" :> Header "Authorization" Text :> Header "Content-Type" Text :> ReqBody '[CustomJSON] FullRegisterPayload :> PostNoContent
Expand Down Expand Up @@ -77,7 +77,7 @@ sendMetrics clientEnv apiKey metricsPayload = do
{ appName = metricsPayload.appName,
instanceId = metricsPayload.instanceId,
bucket =
FullMetricBucket
FullMetricsBucket
{ start = metricsPayload.start,
stop = metricsPayload.stop,
toggles = makeMapOfYesAndNoes metricsPayload.toggles
Expand Down

0 comments on commit 39904a0

Please sign in to comment.