@@ -52,8 +52,8 @@ import Data.List (intersperse)
52import Data.Text (Text)
52import Data.Text (Text)
53import Ormolu.Printer.Comments
53import Ormolu.Printer.Comments
54import Ormolu.Printer.Internal
54import Ormolu.Printer.Internal
55−import Ormolu.Utils (isModule)
55+import Ormolu.Utils (isModule, showOutputable)
56−import Outputable (Outputable (..), showSDocUnsafe)
56+import Outputable (Outputable)
57import SrcLoc
57import SrcLoc
58import qualified Data.Text as T
58import qualified Data.Text as T
@@ -72,7 +72,7 @@ txt t = ensureIndent >> spit t
72-- does have an 'Outputable' instance.
72-- does have an 'Outputable' instance.
74atom :: Outputable a => a -> R ()
74atom :: Outputable a => a -> R ()
75−atom = txt . T.pack . showSDocUnsafe . ppr
75+atom = txt . T.pack . showOutputable
77-- | Enter a 'Located' entity. This combinator handles outputting comments
77-- | Enter a 'Located' entity. This combinator handles outputting comments
78-- and sets layout (single-line vs multi-line) for the inner computation.
78-- and sets layout (single-line vs multi-line) for the inner computation.