Skip to content

Commit 42577bd

Browse files
committed
Fix lints
1 parent 51a5f4b commit 42577bd

File tree

1 file changed

+1
-2
lines changed
  • cardano-api/src/Cardano/Api/Tx/Internal

1 file changed

+1
-2
lines changed

cardano-api/src/Cardano/Api/Tx/Internal/Output.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
{-# LANGUAGE FlexibleContexts #-}
77
{-# LANGUAGE FlexibleInstances #-}
88
{-# LANGUAGE GADTs #-}
9-
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
109
{-# LANGUAGE InstanceSigs #-}
1110
{-# LANGUAGE LambdaCase #-}
1211
{-# LANGUAGE RankNTypes #-}
@@ -142,7 +141,7 @@ instance (Typeable ctx, IsShelleyBasedEra era) => FromCBOR (TxOut ctx era) where
142141
fromCBOR :: Ledger.Decoder s (TxOut ctx era)
143142
fromCBOR =
144143
shelleyBasedEraConstraints (shelleyBasedEra @era) $
145-
fromShelleyTxOut <$> pure shelleyBasedEra <*> L.fromEraCBOR @(ShelleyLedgerEra era)
144+
pure (fromShelleyTxOut shelleyBasedEra) <*> L.fromEraCBOR @(ShelleyLedgerEra era)
146145

147146
deriving instance Eq (TxOut ctx era)
148147

0 commit comments

Comments
 (0)