Conversation
|
I have converted to draft, as there is unexplained adverse changed behaviour in respect of locale when On my 'out of the box' Ubuntu (via WSL2), With a one-package Stack project, with a library module module Lib
( unicode
) where
{-# WARNING unicode "Warning emits unicode 😊" #-}
unicode :: IO ()
unicode = putStrLn "😊"and executable module Main
( main
) where
import Lib ( unicode )
main :: IO ()
main = unicodeWith 'official' Stack 3.11.1 binary (statically-linked):
With Stack-3.11.1 built from source (dynamically-linked):
The problem is that locale I understand the solution is to refer to a UTF-8 locale that is more likely to be available on the host, namely |
See:
If
nix-shell <args>fails, Stack just outputs the Nix error #6861Any changes that could be relevant to users have been recorded in ChangeLog.md.
The documentation has been updated, if necessary
Please also shortly describe how you tested your change. Bonus points for added tests!
If any users of Stack on NixOS or other users of Stack's Nix integration see this, I would appreciate any feedback on it.