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

Commit b278c95

Browse files
author
Ben Ford
committed
Tidy up some warnings and run stylish
1 parent 1063597 commit b278c95

File tree

2 files changed

+23
-32
lines changed

2 files changed

+23
-32
lines changed

faucet/src/Cardano/Faucet.hs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
{-# LANGUAGE ConstraintKinds #-}
12
{-# LANGUAGE DataKinds #-}
23
{-# LANGUAGE OverloadedStrings #-}
34
{-# LANGUAGE TypeOperators #-}
4-
{-# LANGUAGE ConstraintKinds #-}
55
{-# OPTIONS_GHC -Wall #-}
66
module Cardano.Faucet (
77
server
@@ -10,17 +10,14 @@ module Cardano.Faucet (
1010
) where
1111

1212
import Control.Lens
13-
import Data.Monoid ((<>))
14-
import Data.Text.Lens
15-
import Control.Monad.IO.Class
13+
import Data.Monoid ((<>))
14+
import Data.Text.Lens
1615
import Servant
17-
import System.Wlog (HasLoggerName, LoggerName (..), WithLogger, logError, logInfo,
18-
withSublogger)
16+
import System.Wlog (LoggerName (..), logError, logInfo, withSublogger)
1917

20-
import Pos.Core (Address (..))
21-
import Cardano.Wallet.API.V1.Types (V1(..), unV1)
22-
import Cardano.Wallet.API.Response (WalletResponse(..))
2318
import Cardano.Faucet.Types
19+
import Cardano.Wallet.API.Response (WalletResponse (..))
20+
import Cardano.Wallet.API.V1.Types (unV1)
2421
import qualified Cardano.WalletClient as Client
2522
-- import Client.Cardano.Wallet.Web.Run (runEndpointClient)
2623

faucet/src/Cardano/WalletClient.hs

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,26 @@
1-
{-# LANGUAGE DataKinds #-}
2-
{-# LANGUAGE OverloadedStrings #-}
1+
{-# LANGUAGE DataKinds #-}
2+
{-# LANGUAGE OverloadedStrings #-}
33
{-# LANGUAGE ScopedTypeVariables #-}
4-
module Cardano.WalletClient where
4+
{-# OPTIONS_GHC -Wall #-}
5+
module Cardano.WalletClient (
6+
withdraw
7+
) where
58
-- ( export
69
-- , export
710
-- ) where
811

9-
import Crypto.Hash (Blake2b, Blake2b_224, Blake2b_256, Digest)
10-
import Data.ByteString (ByteString)
11-
import qualified Data.ByteString.Base16 as Base16
12-
import qualified Data.ByteArray as BA
13-
-- import qualified Serokell.Util.Base16 as Base16
14-
import qualified Crypto.Hash as CryptoHash
15-
import Control.Lens
16-
import Control.Monad.Reader
17-
import Data.Text (Text)
18-
import Data.List.NonEmpty (NonEmpty(..))
19-
import Data.Text.Buildable (build)
2012
import Cardano.Faucet.Types
21-
import Cardano.Wallet.API.V1.Types (Payment (..), PaymentDistribution (..),
22-
PaymentSource (..), V1(..), mkPassPhrase)
23-
-- import Cardano.Wallet.API.V1.Types.V1 (Coin (..), Address(..))
24-
import Cardano.Wallet.Client (Resp, Transaction, WalletClient (..), WalletResponse (..),
25-
liftClient)
26-
import Pos.Wallet.Web.Methods.Payment (newPayment)
27-
import Pos.Core (Coin (..), Address(..))
28-
import Pos.Crypto.Signing (PassPhrase(..))
29-
import Pos.Wallet.Web.ClientTypes.Types (Addr (..), CId (..))
13+
import Cardano.Wallet.API.V1.Types (Payment (..), PaymentDistribution (..), V1 (..))
14+
import Cardano.Wallet.Client (Resp, Transaction, WalletClient (..), liftClient)
15+
import Control.Lens
16+
import Crypto.Hash (Blake2b_256, Digest)
17+
import qualified Crypto.Hash as CryptoHash
18+
import qualified Data.ByteArray as BA
19+
import Data.ByteString (ByteString)
20+
import Data.List.NonEmpty (NonEmpty (..))
21+
import Pos.Core (Address (..), Coin (..))
22+
import Pos.Crypto.Signing (PassPhrase)
23+
3024

3125

3226
withdraw :: (MonadFaucet c m) => V1 Address -> V1 Coin -> Resp m Transaction

0 commit comments

Comments
 (0)