File tree Expand file tree Collapse file tree 12 files changed +15
-21
lines changed
src/Cardano/Wallet/Jormungandr
integration/Cardano/Wallet/Jormungandr
unit/Cardano/Pool/Jormungandr
launcher/test/unit/Cardano Expand file tree Collapse file tree 12 files changed +15
-21
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-
41{-# LANGUAGE DataKinds #-}
52{-# LANGUAGE FlexibleContexts #-}
63{-# LANGUAGE LambdaCase #-}
@@ -281,7 +278,7 @@ decodeTx = do
281278 _ <- decodeEmptyAttributes
282279 return (ins, outs)
283280
284- {-# HLINT ignore decodeTxIn "Use <$>" # -}
281+ {- HLINT ignore decodeTxIn "Use <$>" -}
285282decodeTxIn :: CBOR. Decoder s TxIn
286283decodeTxIn = do
287284 _ <- CBOR. decodeListLenCanonicalOf 2
@@ -301,7 +298,7 @@ decodeTxIn = do
301298 tx <- Hash <$> CBOR. decodeBytes
302299 TxIn tx <$> CBOR. decodeWord32
303300
304- {-# HLINT ignore decodeTxOut "Use <$>" # -}
301+ {- HLINT ignore decodeTxOut "Use <$>" -}
305302decodeTxOut :: CBOR. Decoder s TxOut
306303decodeTxOut = do
307304 _ <- CBOR. decodeListLenCanonicalOf 2
Original file line number Diff line number Diff line change 1313{-# LANGUAGE TypeFamilies #-}
1414{-# LANGUAGE UndecidableInstances #-}
1515
16- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
17- {-# HLINT ignore "Redundant flip" #-}
16+ {- HLINT ignore "Redundant flip" -}
1817
1918-- |
2019-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change 1414{-# LANGUAGE TypeFamilies #-}
1515{-# LANGUAGE UndecidableInstances #-}
1616
17- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
18- {-# HLINT ignore "Redundant flip" #-}
17+ {- HLINT ignore "Redundant flip" -}
1918
2019-- |
2120-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change 1212{-# LANGUAGE TypeFamilies #-}
1313{-# LANGUAGE UndecidableInstances #-}
1414
15- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
16- {-# HLINT ignore "Redundant flip" #-}
15+ {- HLINT ignore "Redundant flip" -}
1716
1817-- |
1918-- Copyright: © 2018-2020 IOHK
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ import qualified Data.ByteArray as BA
5858import qualified Data.ByteString as BS
5959import qualified Data.ByteString.Lazy as BL
6060
61- {-# ANN spec ("HLint: ignore Use head" :: String) # -}
61+ {- HLINT ignore spec " Use head" -}
6262
6363spec :: Spec
6464spec = do
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ import qualified Test.QuickCheck as QC
228228import qualified Test.StateMachine.Types as QSM
229229import qualified Test.StateMachine.Types.Rank2 as Rank2
230230
231- {-# ANN module ("HLint: ignore Unused LANGUAGE pragma" :: String) # -}
231+ {- HLINT ignore " Unused LANGUAGE pragma" -}
232232
233233{- ------------------------------------------------------------------------------
234234 Mock implementation
@@ -563,7 +563,7 @@ lockstep m@(Model _ ws) c (At resp) = Event
563563 Generator
564564-------------------------------------------------------------------------------}
565565
566- {-# ANN generator ("HLint: ignore Use ++" :: String) # -}
566+ {- HLINT ignore generator " Use ++" -}
567567generator
568568 :: forall s . (Arbitrary (Wallet s ), GenState s )
569569 => Model s Symbolic
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ import qualified Data.Map.Strict as Map
8484import qualified Data.Set as Set
8585import qualified Test.QuickCheck.Monadic as QC
8686
87- {-# ANN module ("HLint: ignore Use <$>" :: String) # -}
87+ {- HLINT ignore " Use <$>" -}
8888
8989spec :: Spec
9090spec = do
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ maxNumberOfOutputs = 254
197197-------------------------------------------------------------------------------}
198198
199199-- Do-notation is favoured over applicative syntax for readability:
200- {-# ANN module ("HLint: ignore Use <$>" :: String) # -}
200+ {- HLINT ignore " Use <$>" -}
201201
202202data BlockHeader = BlockHeader
203203 { 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
129129import qualified Data.ByteString as BS
130130import qualified Data.ByteString.Char8 as B8
131131
132- {-# ANN spec ("HLint: ignore Use head" :: String) # -}
132+ {- HLINT ignore spec " Use head" -}
133133
134134spec :: Spec
135135spec = do
Original file line number Diff line number Diff line change 88{-# LANGUAGE TypeApplications #-}
99{-# LANGUAGE TypeFamilies #-}
1010{-# OPTIONS_GHC -fno-warn-orphans #-}
11- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
1211
1312module Cardano.Pool.Jormungandr.MetricsSpec
1413 ( spec
@@ -177,7 +176,7 @@ prop_combineIsLeftBiased mStake_ mProd_ mPerf_ =
177176 mStake = Map. mapKeys getLowEntropy mStake_
178177 mProd = Map. mapKeys getLowEntropy mProd_
179178 mPerf = Map. mapKeys getLowEntropy mPerf_
180- {-# HLINT ignore prop_combineIsLeftBiased "Use ||" # -}
179+ {- HLINT ignore prop_combineIsLeftBiased "Use ||" -}
181180
182181-- | A list of chunks of blocks to be served up by the mock network layer.
183182newtype RegistrationsTest = RegistrationsTest
You can’t perform that action at this time.
0 commit comments