2026/03/03

Newest at the top

2026-03-03 16:16:11 +0100gentaurohowever, I DO run my `ghci` with stack -> `stack ghci`
2026-03-03 16:15:47 +0100 <gentauro> kind of strainge tbh
2026-03-03 16:15:43 +0100 <gentauro> __monty__: Nope. That seem to work
2026-03-03 16:14:49 +0100jtnuttall(~jeremy@user/jeremyn) jeremyn
2026-03-03 16:12:53 +0100misterfish(~misterfis@31-161-39-137.biz.kpn.net) misterfish
2026-03-03 16:12:08 +0100 <__monty__> Can you reproduce the same behavior in GHCi?
2026-03-03 16:11:18 +0100 <gentauro> but, I'm not on a windows device …
2026-03-03 16:11:10 +0100 <gentauro> I guess even (Elm) Evan ran into something like this (back in 2019): https://discourse.elm-lang.org/t/help-improve-unicode-support-on-windows/3366
2026-03-03 16:11:05 +0100 <lambdabot> print x = putStrLn (show x)
2026-03-03 16:11:05 +0100 <int-e> @src print
2026-03-03 16:09:47 +0100 <gentauro> __monty__: yeah: `putStr (show localeEncoding)` -> `UTF-8`
2026-03-03 16:07:31 +0100 <__monty__> Does System.IO.localeEncoding report UTF-8 for you?
2026-03-03 16:06:53 +0100tremon(~tremon@83.80.159.219) tremon
2026-03-03 16:05:47 +0100 <__monty__> s/en_US/en_DK/g; except LC_ALL is empty.
2026-03-03 16:04:37 +0100 <gentauro> __monty__: what does your `locale` say?
2026-03-03 15:59:17 +0100 <__monty__> If I `hSetEncoding` to `latin1` I do get the error you got so it looks like it is an encoding problem.
2026-03-03 15:55:32 +0100 <gentauro> it's correct to assume that `hSetEncoding` is set globally right? I just need to add it in my `main :: IO ()` right?
2026-03-03 15:55:19 +0100wbrawner(~wbrawner@129.146.105.153) wbrawner
2026-03-03 15:53:23 +0100 <gentauro> it's just x3 the same syntas with the following keywords
2026-03-03 15:53:07 +0100 <gentauro> __monty__: obviously not. It's to write less ;)
2026-03-03 15:51:56 +0100wbrawner(~wbrawner@129.146.105.153) (Ping timeout: 252 seconds)
2026-03-03 15:51:55 +0100 <__monty__> That doesn't look like valid Haskell syntax.
2026-03-03 15:51:27 +0100 <gentauro> just in case, it's `hSetEncoding {stderr|stdin|stdout} utf8`
2026-03-03 15:51:19 +0100misterfish(~misterfis@84.53.85.146) (Ping timeout: 264 seconds)
2026-03-03 15:50:25 +0100 <gentauro> I guess I've set UTF-8 properly in the Haskell app.
2026-03-03 15:50:10 +0100 <gentauro> ijouw: `hGetEncoding` -> `Just UTF-8`
2026-03-03 15:47:46 +0100 <gentauro> ijouw: let me try
2026-03-03 15:47:05 +0100 <yahb2> 🍎🍏
2026-03-03 15:47:05 +0100 <gentauro> % putStrLn [ '🍎', '🍏' ]
2026-03-03 15:46:57 +0100 <__monty__> (FYI, you can use en_DK to get sensible dates ; ) )
2026-03-03 15:46:40 +0100 <haskellbridge> <ijouw> Just to be sure, you can use hGetEncoding to double check
2026-03-03 15:45:31 +0100 <gentauro> __monty__: it sure is -> https://paste.tomsmeding.com/ZsN4DRUa
2026-03-03 15:44:18 +0100 <gentauro> I'm setting the encoding to `hSetEncoding stdout utf8`.
2026-03-03 15:44:14 +0100 <__monty__> Is your locale UTF-8?
2026-03-03 15:43:35 +0100 <gentauro> why do I get `<stdout>: hPutChar: invalid argument (cannot encode character '\55357'`?
2026-03-03 15:43:13 +0100rekahsoft(~rekahsoft@76.67.111.168) rekahsoft
2026-03-03 15:43:04 +0100 <gentauro> Hmmm
2026-03-03 15:42:59 +0100 <yahb2> 🍎
2026-03-03 15:42:58 +0100 <gentauro> % putStrLn [ '🍎' ]
2026-03-03 15:42:42 +0100 <yahb2> putStrLn :: String -> IO ()
2026-03-03 15:42:42 +0100 <gentauro> % :t putStrLn
2026-03-03 15:42:31 +0100 <lambdabot> <hint>:1:1: error: parse error on input `:'
2026-03-03 15:42:29 +0100 <gentauro> > :t putStrLn
2026-03-03 15:41:07 +0100weary-traveler(~user@user/user363627) user363627
2026-03-03 15:39:42 +0100wbrawner(~wbrawner@129.146.105.153) wbrawner
2026-03-03 15:39:14 +0100wbrawner(~wbrawner@129.146.105.153) (Ping timeout: 248 seconds)
2026-03-03 15:38:13 +0100mange(~mange@user/mange) (Quit: Zzz...)
2026-03-03 15:37:21 +0100u0_a216(~molidae@2401:4900:628f:90b4:f04f:39fd:d52a:6874) (Ping timeout: 268 seconds)
2026-03-03 15:36:33 +0100user363627(~user@user/user363627) (Remote host closed the connection)
2026-03-03 15:33:43 +0100wbrawner(~wbrawner@129.146.105.153) wbrawner