Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 17f9606

Browse files
committed
[DEVOPS-998] faucet: Fix warnings
1 parent b1a4c5b commit 17f9606

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

faucet/src/Cardano/Faucet/Init.hs

+5-5
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ completelySynced = mkSyncPercentage 100
9696

9797
-- | Looks up the 'SyncPercentage' using 'getNodeInfo' from the 'WalletClient'
9898
getSyncState
99-
:: (HasLoggerName m, MonadIO m)
99+
:: (Monad m)
100100
=> WalletClient m
101101
-> m (Either ClientError SyncPercentage)
102102
getSyncState client = do
@@ -106,7 +106,7 @@ getSyncState client = do
106106
--------------------------------------------------------------------------------
107107

108108
listToEitherT
109-
:: (HasLoggerName m, CanLog m, MonadIO m)
109+
:: (HasLoggerName m, CanLog m)
110110
=> e -> Text -> Text -> [a] -> ExceptT e m a
111111
listToEitherT err errMsg successMsg as = case as of
112112
[a] -> logInfo successMsg >> return a
@@ -120,7 +120,7 @@ runClient
120120
runClient err m = ExceptT $ (fmap (first err)) $ fmap (fmap wrData) m
121121

122122
getOneAddress
123-
:: (HasLoggerName m, CanLog m, MonadIO m)
123+
:: (HasLoggerName m, CanLog m)
124124
=> WalletId
125125
-> Account
126126
-> ExceptT InitFaucetError m WalletAddress
@@ -198,7 +198,7 @@ writeCreatedWalletInfo fp cw = do
198198
--
199199
-- Fails with 'CouldntReadBalance'
200200
readWalletBalance
201-
:: (HasLoggerName m, CanLog m, MonadIO m)
201+
:: (CanLog m)
202202
=> WalletClient m
203203
-> PaymentSource
204204
-> ExceptT InitFaucetError m Int64
@@ -233,7 +233,7 @@ monitorWalletBalance fEnv = do
233233
--
234234
-- Fails with 'BadAddress'
235235
readReturnAddress
236-
:: (HasLoggerName m, CanLog m, MonadIO m)
236+
:: (HasLoggerName m, CanLog m)
237237
=> WalletClient m
238238
-> PaymentSource
239239
-> ExceptT InitFaucetError m (V1 Address)

faucet/test/Spec.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ prop_randomAmount pd = monadicIO $ do
4242
between (PaymentDistribution m s) c = c <= m + s
4343
&& c >= m - s
4444

45-
prop_aeson_id :: (Arbitrary a, ToJSON a, FromJSON a, Eq a) => a -> Bool
45+
prop_aeson_id :: (ToJSON a, FromJSON a, Eq a) => a -> Bool
4646
prop_aeson_id a = Just a == (decode $ encode a)
4747

4848

0 commit comments

Comments
 (0)