Skip to content

Commit

Permalink
Qualified import of Data.Text.Lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 4, 2022
1 parent ad26545 commit 5d90c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano-api/src/Cardano/Api/LedgerState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import Data.SOP.Strict (NP (..))
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.Encoding as Text
import Data.Text.Lazy (toStrict)
import qualified Data.Text.Lazy as LT
import Data.Text.Lazy.Builder (toLazyText)
import Data.Word
import qualified Data.Yaml as Yaml
Expand Down Expand Up @@ -1294,7 +1294,7 @@ instance Error LeadershipError where
displayError LeaderErrDecodeLedgerStateFailure =
"Failed to successfully decode ledger state"
displayError (LeaderErrDecodeProtocolStateFailure (_, decErr)) =
"Failed to successfully decode protocol state: " <> Text.unpack (toStrict . toLazyText $ build decErr)
"Failed to successfully decode protocol state: " <> Text.unpack (LT.toStrict . toLazyText $ build decErr)
displayError LeaderErrGenesisSlot =
"Leadership schedule currently cannot be calculated from genesis"
displayError (LeaderErrStakePoolHasNoStake poolId) =
Expand Down

0 comments on commit 5d90c54

Please sign in to comment.