File tree Expand file tree Collapse file tree 13 files changed +16
-22
lines changed
src/Cardano/Wallet/Jormungandr
integration/Cardano/Wallet/Jormungandr
unit/Cardano/Pool/Jormungandr
launcher/test/unit/Cardano Expand file tree Collapse file tree 13 files changed +16
-22
lines changed Original file line number Diff line number Diff line change 1
- -- need this for {-# HLINT ... #-}; see https://github.com/ndmitchell/hlint#ignoring-hints
2
- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
3
-
4
1
{-# LANGUAGE DataKinds #-}
5
2
{-# LANGUAGE FlexibleContexts #-}
6
3
{-# LANGUAGE LambdaCase #-}
@@ -281,7 +278,7 @@ decodeTx = do
281
278
_ <- decodeEmptyAttributes
282
279
return (ins, outs)
283
280
284
- {-# HLINT ignore decodeTxIn "Use <$>" # -}
281
+ {- HLINT ignore decodeTxIn "Use <$>" -}
285
282
decodeTxIn :: CBOR. Decoder s TxIn
286
283
decodeTxIn = do
287
284
_ <- CBOR. decodeListLenCanonicalOf 2
@@ -301,7 +298,7 @@ decodeTxIn = do
301
298
tx <- Hash <$> CBOR. decodeBytes
302
299
TxIn tx <$> CBOR. decodeWord32
303
300
304
- {-# HLINT ignore decodeTxOut "Use <$>" # -}
301
+ {- HLINT ignore decodeTxOut "Use <$>" -}
305
302
decodeTxOut :: CBOR. Decoder s TxOut
306
303
decodeTxOut = do
307
304
_ <- CBOR. decodeListLenCanonicalOf 2
Original file line number Diff line number Diff line change 13
13
{-# LANGUAGE TypeFamilies #-}
14
14
{-# LANGUAGE UndecidableInstances #-}
15
15
16
- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
17
- {-# HLINT ignore "Redundant flip" #-}
16
+ {- HLINT ignore "Redundant flip" -}
18
17
19
18
-- |
20
19
-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ mReadSettings = get #settings
451
451
-- `const` isn't more readable than lambdas. Our language is based on
452
452
-- lambda calculus and we shouldn't feel ashamed to use them. They also
453
453
-- have different strictness properties.
454
- {-# HLINT ignore mPutSettings "Use const" # -}
454
+ {- HLINT ignore mPutSettings "Use const" -}
455
455
mPutSettings
456
456
:: Settings
457
457
-> ModelOp ()
Original file line number Diff line number Diff line change 14
14
{-# LANGUAGE TypeFamilies #-}
15
15
{-# LANGUAGE UndecidableInstances #-}
16
16
17
- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
18
- {-# HLINT ignore "Redundant flip" #-}
17
+ {- HLINT ignore "Redundant flip" -}
19
18
20
19
-- |
21
20
-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change 12
12
{-# LANGUAGE TypeFamilies #-}
13
13
{-# LANGUAGE UndecidableInstances #-}
14
14
15
- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
16
- {-# HLINT ignore "Redundant flip" #-}
15
+ {- HLINT ignore "Redundant flip" -}
17
16
18
17
-- |
19
18
-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ import qualified Data.ByteArray as BA
58
58
import qualified Data.ByteString as BS
59
59
import qualified Data.ByteString.Lazy as BL
60
60
61
- {-# ANN spec ("HLint: ignore Use head" :: String) # -}
61
+ {- HLINT ignore spec " Use head" -}
62
62
63
63
spec :: Spec
64
64
spec = do
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ import qualified Test.QuickCheck as QC
229
229
import qualified Test.StateMachine.Types as QSM
230
230
import qualified Test.StateMachine.Types.Rank2 as Rank2
231
231
232
- {-# ANN module ("HLint: ignore Unused LANGUAGE pragma" :: String) # -}
232
+ {- HLINT ignore " Unused LANGUAGE pragma" -}
233
233
234
234
{- ------------------------------------------------------------------------------
235
235
Mock implementation
@@ -569,7 +569,7 @@ lockstep m@(Model _ ws) c (At resp) = Event
569
569
Generator
570
570
-------------------------------------------------------------------------------}
571
571
572
- {-# ANN generator ("HLint: ignore Use ++" :: String) # -}
572
+ {- HLINT ignore generator " Use ++" -}
573
573
generator
574
574
:: forall s . (Arbitrary (Wallet s ), GenState s )
575
575
=> Model s Symbolic
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ import qualified Data.Map.Strict as Map
84
84
import qualified Data.Set as Set
85
85
import qualified Test.QuickCheck.Monadic as QC
86
86
87
- {-# ANN module ("HLint: ignore Use <$>" :: String) # -}
87
+ {- HLINT ignore " Use <$>" -}
88
88
89
89
spec :: Spec
90
90
spec = do
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ maxNumberOfOutputs = 254
197
197
-------------------------------------------------------------------------------}
198
198
199
199
-- Do-notation is favoured over applicative syntax for readability:
200
- {-# ANN module ("HLint: ignore Use <$>" :: String) # -}
200
+ {- HLINT ignore " Use <$>" -}
201
201
202
202
data BlockHeader = BlockHeader
203
203
{ version :: Word16
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ import qualified Cardano.Wallet.Jormungandr.Api.Client as Jormungandr
129
129
import qualified Data.ByteString as BS
130
130
import qualified Data.ByteString.Char8 as B8
131
131
132
- {-# ANN spec ("HLint: ignore Use head" :: String) # -}
132
+ {- HLINT ignore spec " Use head" -}
133
133
134
134
spec :: Spec
135
135
spec = do
You can’t perform that action at this time.
0 commit comments