Skip to content

Commit e535623

Browse files
committed
fix all bfx tests
1 parent 7db30a6 commit e535623

File tree

17 files changed

+31
-74
lines changed

17 files changed

+31
-74
lines changed

pub/bfx/bfx.cabal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ library
139139
Bfx.Indicator.Ma
140140
Bfx.Indicator.Tr
141141
Bfx.Math
142-
Bfx.Orphan
143142
Bfx.Parser
144143
Bfx.Rpc.Generic
145144
Bfx.Util
@@ -191,7 +190,6 @@ test-suite bfx-test
191190
Bfx.Indicator.Ma
192191
Bfx.Indicator.Tr
193192
Bfx.Math
194-
Bfx.Orphan
195193
Bfx.Parser
196194
Bfx.Rpc.Generic
197195
Bfx.Util

pub/bfx/src/Bfx/Class/FromRpc.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
2-
{-# LANGUAGE UndecidableInstances #-}
31
{-# OPTIONS_HADDOCK show-extensions #-}
42

53
module Bfx.Class.FromRpc

pub/bfx/src/Bfx/Class/ToBaseUrl.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
21
{-# OPTIONS_HADDOCK show-extensions #-}
32

43
module Bfx.Class.ToBaseUrl

pub/bfx/src/Bfx/Class/ToPathPieces.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
21
{-# OPTIONS_HADDOCK show-extensions #-}
32

43
module Bfx.Class.ToPathPieces

pub/bfx/src/Bfx/Class/ToRequestMethod.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE AllowAmbiguousTypes #-}
21
{-# OPTIONS_HADDOCK show-extensions #-}
32

43
module Bfx.Class.ToRequestMethod

pub/bfx/src/Bfx/Class/ToRequestParam.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE UndecidableInstances #-}
21
{-# OPTIONS_HADDOCK show-extensions #-}
32

43
module Bfx.Class.ToRequestParam

pub/bfx/src/Bfx/Data/Type.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ where
3939

4040
import Bfx.Class.ToRequestParam
4141
import Bfx.Import.External
42-
import Bfx.Orphan ()
4342
import Data.Aeson (withText)
4443
import qualified Data.Aeson as A
4544
import qualified Data.Text as T

pub/bfx/src/Bfx/Data/Wallets.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{-# LANGUAGE UndecidableInstances #-}
21
{-# OPTIONS_HADDOCK show-extensions #-}
32

43
module Bfx.Data.Wallets

pub/bfx/src/Bfx/Import/Internal.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,5 @@ import Bfx.Data.Kind as X
1414
import Bfx.Data.Type as X
1515
import Bfx.Data.Web as X
1616
import Bfx.Math as X
17-
import Bfx.Orphan as X ()
1817
import Bfx.Parser as X
1918
import Bfx.Util as X

pub/bfx/src/Bfx/Math.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ data CounterExit = CounterExit
113113

114114
newCounterOrder :: (MonadThrow m) => CounterArgs -> m CounterExit
115115
newCounterOrder args = do
116-
exitBase <- tweakMoneyAmount Sell =<< roundMoneyAmount exitBaseLoss
116+
exitBase <- tweakMoneyAmount Sell exitBaseLoss
117117
exitPrice <- roundQuotePerBase exitRate
118118
pure
119119
CounterExit

0 commit comments

Comments
 (0)