Skip to content

Commit

Permalink
Use with-utf8 to manage setting a compatible terminal locale
Browse files Browse the repository at this point in the history
See: https://serokell.io/blog/haskell-with-utf8 for motivation for this library.
  • Loading branch information
paulcadman committed Oct 23, 2023
1 parent cdfb35a commit e9cf706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import GlobalOptions
import Juvix.Compiler.Pipeline.Root
import TopCommand
import TopCommand.Options
import Main.Utf8 (withUtf8)

main :: IO ()
main = do
main = withUtf8 $ do
let parserPreferences = prefs showHelpOnEmpty
invokeDir <- getCurrentDir
(_runAppIOArgsGlobalOptions, cli) <- customExecParser parserPreferences descr
Expand Down
1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ dependencies:
- unordered-containers == 0.2.*
- utf8-string == 1.0.*
- versions == 6.0.*
- with-utf8 == 1.0.*
- xdg-basedir == 0.2.*
- yaml == 0.11.*

Expand Down

0 comments on commit e9cf706

Please sign in to comment.