We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1de8c17 + af2653d commit 8504290Copy full SHA for 8504290
cardano-api/src/Cardano/Api/Internal/Pretty.hs
@@ -1,3 +1,5 @@
1
+{-# OPTIONS_GHC -Wno-orphans #-}
2
+
3
module Cardano.Api.Internal.Pretty
4
( Ann
5
, Doc
@@ -24,6 +26,8 @@ where
24
26
25
27
import Cardano.Api.Internal.Via.ShowOf
28
29
+import Cardano.Ledger.BaseTypes qualified as L
30
31
import Control.Exception.Safe
32
import Data.Text qualified as Text
33
import Data.Text.Lazy qualified as TextLazy
@@ -74,3 +78,6 @@ pshow = viaShow
74
78
-- | Short hand for @'pretty' . 'displayException'@
75
79
prettyException :: Exception a => a -> Doc ann
76
80
prettyException = pretty . displayException
81
82
+instance Pretty L.Url where
83
+ pretty url = pretty (L.urlToText url)
0 commit comments