Skip to content

Commit

Permalink
Remove blockarguments for compat with older GHC
Browse files Browse the repository at this point in the history
  • Loading branch information
chaserhkj committed Nov 27, 2023
1 parent 0fa9df7 commit f33e07c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/src/BNFC/Backend/TreeSitter/CFtoTreeSitter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
Created : 08 Nov, 2023
-}
{-# LANGUAGE BlockArguments #-}

module BNFC.Backend.TreeSitter.CFtoTreeSitter where

Expand Down Expand Up @@ -224,9 +223,9 @@ refName = ("$." ++)
-- | Format right hand side into list of strings
formatRhs :: SentForm -> [Doc]
formatRhs =
map \case
map (\case
Left c -> text $ refName $ formatCatName False c
Right term -> quoted term
Right term -> quoted term)

quoted :: String -> Doc
quoted s = text "\"" <> text s <> text "\""
Expand Down

0 comments on commit f33e07c

Please sign in to comment.