@@ -52,8 +52,8 @@ import Data.List (intersperse)
5252import Data.Text (Text)
5353import Ormolu.Printer.Comments
5454import Ormolu.Printer.Internal
55−import Ormolu.Utils (isModule)
56−import Outputable (Outputable (..), showSDocUnsafe)
55+import Ormolu.Utils (isModule, showOutputable)
56+import Outputable (Outputable)
5757import SrcLoc
5858import qualified Data.Text as T
5959
@@ -72,7 +72,7 @@ txt t = ensureIndent >> spit t
7272-- does have an 'Outputable' instance.
7373
7474atom :: Outputable a => a -> R ()
75−atom = txt . T.pack . showSDocUnsafe . ppr
75+atom = txt . T.pack . showOutputable
7676
7777-- | Enter a 'Located' entity. This combinator handles outputting comments
7878-- and sets layout (single-line vs multi-line) for the inner computation.