From 1c4b5b394eb11f0d30e1801ac67c86c1509948e3 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 5 Apr 2017 14:49:00 -0400 Subject: [PATCH] Rename the Rule type and constructors. --- src/Language/Ruby/Syntax.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Language/Ruby/Syntax.hs b/src/Language/Ruby/Syntax.hs index e24281eb4..e0477a91b 100644 --- a/src/Language/Ruby/Syntax.hs +++ b/src/Language/Ruby/Syntax.hs @@ -39,8 +39,8 @@ type Program = Freer -- | Statically-known rules corresponding to symbols in the grammar. -data Rule = ProgramRule | UninterpretedRule +data Grammar = Program | Uninterpreted -- | Assignment onto a program in Ruby’s syntax. -assignment :: Assignment Rule (Program Ruby (Maybe ())) -assignment = foldr (>>) (return Nothing) <$> rule ProgramRule +assignment :: Assignment Grammar (Program Ruby (Maybe ())) +assignment = foldr (>>) (return Nothing) <$> rule Program