@@ -9,14 +9,12 @@ where
10import BasicTypes
10import BasicTypes
11import Control.Monad
11import Control.Monad
12−import FastString (unpackFS)
14import Ormolu.Printer.Combinators
13import Ormolu.Printer.Combinators
15import Ormolu.Printer.Meat.Common
14import Ormolu.Printer.Meat.Common
16import Ormolu.Printer.Meat.Declaration.Signature
15import Ormolu.Printer.Meat.Declaration.Signature
17import Ormolu.Printer.Meat.Declaration.Value
16import Ormolu.Printer.Meat.Declaration.Value
18import Ormolu.Utils
17import Ormolu.Utils
19−import qualified Data.Text as T
21p_ruleDecls :: RuleDecls GhcPs -> R ()
19p_ruleDecls :: RuleDecls GhcPs -> R ()
22p_ruleDecls = \case
20p_ruleDecls = \case
@@ -43,10 +41,7 @@ p_ruleDecl = \case
43 XRuleDecl NoExt -> notImplemented "XRuleDecl"
41 XRuleDecl NoExt -> notImplemented "XRuleDecl"
45p_ruleName :: (SourceText, RuleName) -> R ()
43p_ruleName :: (SourceText, RuleName) -> R ()
46−p_ruleName (_, name) = do
44+p_ruleName (_, name) = atom $ HsString NoSourceText name
48− txt $ T.pack $ unpackFS $ name
51p_ruleBndrs :: [LRuleBndr GhcPs] -> R ()
46p_ruleBndrs :: [LRuleBndr GhcPs] -> R ()
52p_ruleBndrs [] = return ()
47p_ruleBndrs [] = return ()