Skip to content

Commit

Permalink
fixup! [ haskell, BNFC#423 ] structured errors in the Haskell backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Vl. Kalinin committed Aug 12, 2022
1 parent 99f98a8 commit afee537
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/Haskell/CFtoHappy.hs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ footer absName tokenText functor eps errorType _cf = unlines $ concat
, ""
, "-- | The parser failure type."
, "--"
, "-- It can contain fields of more specific failure record types, so that they"
, "-- It contains values of more specific failure record types, so that they"
, "-- could easily be extended with new fields."
, "data Failure"
, " = FailureInvalidToken !InvalidTokenFailure"
Expand Down
3 changes: 1 addition & 2 deletions source/src/BNFC/Options.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}

{-# OPTIONS_GHC -fno-warn-orphans #-}

Expand Down Expand Up @@ -388,7 +387,7 @@ specificOptions =
"Derive Data, Generic, and Typeable instances for AST types"
, haskellTargets )
, ( Option [] ["errors"] (ReqArg parseAndSetErrorType "TYPE")
"Set the parser error type. Valid values are `string' (default) and `structured'"
"Set the parser error type: `string' (default) or `structured'"
, [TargetHaskell] )
, ( Option [] ["xml"] (NoArg (\o -> pure o {xml = 1}))
"Also generate a DTD and an XML printer"
Expand Down

0 comments on commit afee537

Please sign in to comment.