Skip to content

Commit f62f99b

Browse files
committed
Apply formatting for new version of fourmolu-0.17.0.0
1 parent abfd54b commit f62f99b

File tree

47 files changed

+413
-413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+413
-413
lines changed

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Plutus/Evaluate.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ data TransactionScriptFailure era
243243
-- | Map of pointers which can be resolved together with PlutusScripts and their
244244
-- respective contexts
245245
!( Map
246-
(PlutusPurpose AsIx era)
247-
(PlutusPurpose AsItem era, Maybe (PlutusScript era), ScriptHash)
246+
(PlutusPurpose AsIx era)
247+
(PlutusPurpose AsItem era, Maybe (PlutusScript era), ScriptHash)
248248
)
249249
| -- | Missing datum.
250250
MissingDatum !DataHash

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Bbody.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ alonzoBbodyTransition ::
191191
alonzoBbodyTransition =
192192
judgmentContext
193193
>>= \( TRC
194-
( BbodyEnv pp account
195-
, BbodyState ls b
196-
, Block bh txsSeq
197-
)
198-
) -> do
194+
( BbodyEnv pp account
195+
, BbodyState ls b
196+
, Block bh txsSeq
197+
)
198+
) -> do
199199
let txs = txSeqTxns txsSeq
200200
actualBodySize = bBodySize (pp ^. ppProtocolVersionL) txsSeq
201201
actualBodyHash = hashTxSeq @era txsSeq

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxowSpec/Invalid.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ spec = describe "Invalid transactions" $ do
146146
let resetTxOutDataHash =
147147
bodyTxL . outputsTxBodyL
148148
%~ ( \case
149-
h :<| r -> resetDataHash h :<| r
150-
_ -> error "Expected non-empty outputs"
149+
h :<| r -> resetDataHash h :<| r
150+
_ -> error "Expected non-empty outputs"
151151
)
152152

153153
txInAt (0 :: Int)

eras/alonzo/test-suite/test/Test/Cardano/Ledger/Alonzo/ChainTrace.hs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,21 @@ alonzoSpecificProps SourceSignalTarget {source = chainSt, signal = block} =
150150
)
151151
( counterexample "At least one UTxO is consumed" utxoConsumed
152152
.&&. ( case (hasPlutus, isValid') of
153-
(NoPlutus, IsValid True) -> totEU === ExUnits 0 0
154-
(NoPlutus, IsValid False) -> counterexample "No Plutus scripts, but isValid == False" False
155-
(HasPlutus, IsValid True) ->
156-
conjoin
157-
[ counterexample "Non trivial execution units" nonTrivialExU
158-
, counterexample "Received the expected plutus scripts" expectedPScripts
159-
, counterexample "Plutus scripts all evaluate to true" allPlutusTrue
160-
]
161-
(HasPlutus, IsValid False) ->
162-
conjoin
163-
[ counterexample "No new UTxO" noNewUTxO
164-
, counterexample "The collateral amount was added to the fees" collateralInFees
165-
, dp === dp'
166-
, ds === ds'
167-
, counterexample "No failing Plutus scripts" $ not allPlutusTrue
168-
]
153+
(NoPlutus, IsValid True) -> totEU === ExUnits 0 0
154+
(NoPlutus, IsValid False) -> counterexample "No Plutus scripts, but isValid == False" False
155+
(HasPlutus, IsValid True) ->
156+
conjoin
157+
[ counterexample "Non trivial execution units" nonTrivialExU
158+
, counterexample "Received the expected plutus scripts" expectedPScripts
159+
, counterexample "Plutus scripts all evaluate to true" allPlutusTrue
160+
]
161+
(HasPlutus, IsValid False) ->
162+
conjoin
163+
[ counterexample "No new UTxO" noNewUTxO
164+
, counterexample "The collateral amount was added to the fees" collateralInFees
165+
, dp === dp'
166+
, ds === ds'
167+
, counterexample "No failing Plutus scripts" $ not allPlutusTrue
168+
]
169169
)
170170
)

eras/byron/ledger/executable-spec/test/Test/Byron/Spec/Ledger/AbstractSize/Properties.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ exampleTypeRepsTx =
6666
<| typeReps in0
6767
>< typeReps in1
6868
>< ( Seq.fromList
69-
[ typeOf (undefined :: [TxOut])
70-
, typeOf (undefined :: [Wit])
71-
]
69+
[ typeOf (undefined :: [TxOut])
70+
, typeOf (undefined :: [Wit])
71+
]
7272
)
7373

7474
--------------------------------------------------------------------------------

eras/byron/ledger/impl/src/Cardano/Chain/Block/Block.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ encCBORABoundaryBody :: ABoundaryBody a -> Encoding
456456
encCBORABoundaryBody _ =
457457
(encodeListLenIndef <> encodeBreak)
458458
<> ( encodeListLen 1
459-
<> encCBOR (mempty :: Map Word8 LByteString)
459+
<> encCBOR (mempty :: Map Word8 LByteString)
460460
)
461461

462462
-- | For a boundary block, we keep the header, body, and an annotation for

eras/byron/ledger/impl/src/Cardano/Chain/Block/Header.hs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ encCBORHeader es h =
302302
<> encCBOR (headerPrevHash h)
303303
<> encCBOR (headerProof h)
304304
<> ( encodeListLen 4
305-
<> encCBOR (fromSlotNumber es $ headerSlot h)
306-
<> encCBOR (headerGenesisKey h)
307-
<> encCBOR (headerDifficulty h)
308-
<> encCBOR (headerSignature h)
305+
<> encCBOR (fromSlotNumber es $ headerSlot h)
306+
<> encCBOR (headerGenesisKey h)
307+
<> encCBOR (headerDifficulty h)
308+
<> encCBOR (headerSignature h)
309309
)
310310
<> encCBORBlockVersions (headerProtocolVersion h) (headerSoftwareVersion h)
311311

@@ -549,22 +549,22 @@ encCBORABoundaryHeader pm hdr =
549549
encodeListLen 5
550550
<> encCBOR pm
551551
<> ( case boundaryPrevHash hdr of
552-
Left gh -> encCBOR (genesisHeaderHash gh)
553-
Right hh -> encCBOR hh
552+
Left gh -> encCBOR (genesisHeaderHash gh)
553+
Right hh -> encCBOR hh
554554
)
555555
-- Body proof
556556
-- The body is always an empty slot leader schedule, so we hash that.
557557
<> encCBOR (serializeCborHash ([] :: [()]))
558558
-- Consensus data
559559
<> ( encodeListLen 2
560-
-- Epoch
561-
<> encCBOR (boundaryEpoch hdr)
562-
-- Chain difficulty
563-
<> encCBOR (boundaryDifficulty hdr)
560+
-- Epoch
561+
<> encCBOR (boundaryEpoch hdr)
562+
-- Chain difficulty
563+
<> encCBOR (boundaryDifficulty hdr)
564564
)
565565
-- Extra data
566566
<> ( encodeListLen 1
567-
<> encCBOR genesisTag
567+
<> encCBOR genesisTag
568568
)
569569
where
570570
-- Genesis tag to indicate the presence of a genesis hash in a non-zero

eras/byron/ledger/impl/src/Cardano/Chain/Update/Validation/Registration.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,9 @@ registerProposalComponents env rs proposal = do
443443
unAnnotated protocolMagic
444444
== ProtocolMagicId 633343913 -- staging
445445
&& ( currentSlot
446-
== SlotNumber 969188 -- in epoch 44
447-
|| currentSlot
448-
== SlotNumber 1915231 -- in epoch 88
446+
== SlotNumber 969188 -- in epoch 44
447+
|| currentSlot
448+
== SlotNumber 1915231 -- in epoch 88
449449
)
450450

451451
-- | Validate a protocol update

eras/byron/ledger/impl/testlib/Test/Cardano/Chain/Block/Model.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,8 @@ data ValidationOutput = ValidationOutput
351351
-- the trace initial environment.
352352
, result ::
353353
!( Either
354-
ChainValidationError
355-
(ChainValidationState, AbstractToConcreteIdMaps)
354+
ChainValidationError
355+
(ChainValidationState, AbstractToConcreteIdMaps)
356356
)
357357
}
358358

eras/byron/ledger/impl/testlib/Test/Cardano/Chain/Block/ValidationMode.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ ts_prop_updateBlock_Valid =
8181
sampleTrace <- forAll $ trace @CHAIN () traceLength
8282
let lastState = Trace.lastState sampleTrace
8383
chainEnv@( _currentSlot
84-
, abstractInitialUTxO
85-
, _allowedDelegators
86-
, _protocolParamaters
87-
, stableAfter
88-
) = Trace._traceEnv sampleTrace
84+
, abstractInitialUTxO
85+
, _allowedDelegators
86+
, _protocolParamaters
87+
, stableAfter
88+
) = Trace._traceEnv sampleTrace
8989
abstractBlock <-
9090
forAll
9191
$ Abstract.sigGenChain

0 commit comments

Comments
 (0)