@@ -613,7 +613,7 @@ parseSentence =
613
613
parseSentenceSymbol :: Parser ParsedSentence
614
614
parseSentenceSymbol = do
615
615
keyword " symbol"
616
- SentenceSymbolSentence <$> parseSentenceSymbolRemainder
616
+ inject <$> parseSentenceSymbolRemainder
617
617
618
618
{- | Parse a hooked symbol declaration.
619
619
@@ -627,7 +627,7 @@ parseSentenceSymbol = do
627
627
parseSentenceHookedSymbol :: Parser ParsedSentence
628
628
parseSentenceHookedSymbol = do
629
629
keyword " hooked-symbol"
630
- SentenceHookSentence . SentenceHookedSymbol
630
+ inject . SentenceHookedSymbol
631
631
<$> parseSentenceSymbolRemainder
632
632
633
633
{- | Parse a @symbol@ or @hooked-symbol@ sentence after the initial keyword.
@@ -677,7 +677,7 @@ parseSentenceAlias = do
677
677
keyword " :="
678
678
sentenceAliasRightPattern <- parsePattern
679
679
sentenceAliasAttributes <- parseAttributes
680
- (pure . SentenceAliasSentence ) SentenceAlias
680
+ (pure . inject ) SentenceAlias
681
681
{ sentenceAliasAlias
682
682
, sentenceAliasSorts
683
683
, sentenceAliasResultSort
@@ -717,7 +717,7 @@ parseSentenceImport = do
717
717
parseSentenceAxiom :: Parser ParsedSentence
718
718
parseSentenceAxiom = do
719
719
keyword " axiom"
720
- SentenceAxiomSentence <$> parseSentenceAxiomRemainder
720
+ inject <$> parseSentenceAxiomRemainder
721
721
722
722
{- | Parse an claim sentence.
723
723
@@ -732,7 +732,7 @@ parseSentenceAxiom = do
732
732
parseSentenceClaim :: Parser ParsedSentence
733
733
parseSentenceClaim = do
734
734
keyword " claim"
735
- SentenceClaimSentence . SentenceClaim <$> parseSentenceAxiomRemainder
735
+ inject . SentenceClaim <$> parseSentenceAxiomRemainder
736
736
737
737
{- | Parses the part of @axiom@ or @claim@ after its introductory
738
738
keyword using the given constructor to construct the appropriate object.
@@ -764,7 +764,7 @@ parseSentenceAxiomRemainder = do
764
764
parseSentenceSort :: Parser ParsedSentence
765
765
parseSentenceSort = do
766
766
keyword " sort"
767
- SentenceSortSentence <$> parseSentenceSortRemainder
767
+ inject <$> parseSentenceSortRemainder
768
768
769
769
{- | Parse a hooked sort sentence.
770
770
@@ -777,7 +777,7 @@ parseSentenceSort = do
777
777
parseSentenceHookedSort :: Parser ParsedSentence
778
778
parseSentenceHookedSort = do
779
779
keyword " hooked-sort"
780
- SentenceHookSentence . SentenceHookedSort <$> parseSentenceSortRemainder
780
+ inject . SentenceHookedSort <$> parseSentenceSortRemainder
781
781
782
782
{- | Parse the part of @sort@ or @hooked-sort@ after the initial keyword.
783
783
0 commit comments