Skip to content

Commit

Permalink
Use Text with Exit.die (#63)
Browse files Browse the repository at this point in the history
As far as I know it isn't possible to construct String from literals in
hell so we have to take a Text and convert it to String for the
underlying API.
  • Loading branch information
MichaelXavier authored Dec 16, 2024
1 parent 64079de commit 845430e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@ polyLits =
"Tuple.(,,)" (,,) :: forall a b c. a -> b -> c -> (a, b, c)
"Tuple.(,,,)" (,,,) :: forall a b c d. a -> b -> c -> d -> (a, b, c, d)
-- Exit
"Exit.die" Exit.die :: forall a. String -> IO a
"Exit.die" (Exit.die . Text.unpack) :: forall a. Text -> IO a
"Exit.exitWith" Exit.exitWith :: forall a. ExitCode -> IO a
"Exit.exitCode" exit_exitCode :: forall a. a -> (Int -> a) -> ExitCode -> a
-- Exceptions
Expand Down

0 comments on commit 845430e

Please sign in to comment.