Skip to content

Commit f429e56

Browse files
knothedEricson2314
authored andcommitted
Rename die' to die
1 parent d6a166d commit f429e56

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/tabular/src/Happy/Tabular.hs

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Happy.Tabular.Info
1010
import Happy.Tabular.Tabular
1111
import Data.Array (Array)
1212
import System.IO
13-
import System.Exit
13+
import System.Exit (exitWith, ExitCode(..))
1414
import Control.Monad
1515

1616
-------- Main entry point (runTabular) --------
@@ -67,11 +67,11 @@ reportConflicts :: Grammar -> Int -> Int -> IO ()
6767
reportConflicts g sr rr = case expect g of
6868
Just n | n == sr && rr == 0 -> return ()
6969
Just _ | rr > 0 ->
70-
die' $ "The grammar has reduce/reduce conflicts.\n" ++
71-
"This is not allowed when an expect directive is given\n"
70+
die $ "The grammar has reduce/reduce conflicts.\n" ++
71+
"This is not allowed when an expect directive is given\n"
7272
Just _ ->
73-
die' $ "The grammar has " ++ show sr ++ " shift/reduce conflicts.\n" ++
74-
"This is different from the number given in the expect directive\n"
73+
die $ "The grammar has " ++ show sr ++ " shift/reduce conflicts.\n" ++
74+
"This is different from the number given in the expect directive\n"
7575
_ -> do
7676
if sr /= 0
7777
then hPutStrLn stderr ("shift/reduce conflicts: " ++ show sr)
@@ -81,8 +81,8 @@ reportConflicts g sr rr = case expect g of
8181
then hPutStrLn stderr ("reduce/reduce conflicts: " ++ show rr)
8282
else return ()
8383

84-
die' :: String -> IO a
85-
die' s = hPutStr stderr s >> exitWith (ExitFailure 1)
84+
die :: String -> IO a
85+
die s = hPutStr stderr s >> exitWith (ExitFailure 1)
8686

8787
writeInfoFile
8888
:: [LALR.ItemSetWithGotos]

0 commit comments

Comments
 (0)