Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2020-11-04 08:59:57 nefercheprure joins (tma@twin.jikos.cz)
2020-11-04 09:00:05 <dminuoso> Also it ensures you never leave your working free in an uncompilable state.
2020-11-04 09:00:18 × nefercheprure quits (tma@twin.jikos.cz) (Client Quit)
2020-11-04 09:00:28 <dminuoso> Can we bring it back in?
2020-11-04 09:00:29 <[exa]> is this the future?
2020-11-04 09:00:36 × pavonia quits (~user@unaffiliated/siracusa) (Quit: Bye!)
2020-11-04 09:00:41 ahmr88 joins (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net)
2020-11-04 09:02:07 <[exa]> dminuoso: not everyone will really like it, I suggest -XPenance
2020-11-04 09:02:53 <bqv> -fno-sacrilege
2020-11-04 09:03:26 <[exa]> :]
2020-11-04 09:04:34 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 256 seconds)
2020-11-04 09:05:40 <maerwald> merijn: prelude made it impossible to ship that patch
2020-11-04 09:05:49 × notnatebtw quits (~nate@125.161.131.218) (Quit: WeeChat 2.9)
2020-11-04 09:07:52 jonathanx joins (~jonathan@dyn-8-sc.cdg.chalmers.se)
2020-11-04 09:09:24 thc202 joins (~thc202@unaffiliated/thc202)
2020-11-04 09:09:42 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:09:56 fendor joins (~fendor@77.119.128.11.wireless.dyn.drei.com)
2020-11-04 09:14:29 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 260 seconds)
2020-11-04 09:16:50 × Sanchayan quits (~Sanchayan@2401:4900:33b4:be84:783e:93bf:dec8:5aeb) (Ping timeout: 264 seconds)
2020-11-04 09:17:04 × avdb quits (~avdb@ip-62-235-73-30.dsl.scarlet.be) (Remote host closed the connection)
2020-11-04 09:17:20 avdb joins (~avdb@ip-62-235-73-30.dsl.scarlet.be)
2020-11-04 09:19:55 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:21:06 Franciman joins (~francesco@host-79-36-167-172.retail.telecomitalia.it)
2020-11-04 09:22:30 × ahmr88 quits (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net) (Remote host closed the connection)
2020-11-04 09:23:52 × avdb quits (~avdb@ip-62-235-73-30.dsl.scarlet.be) (Quit: WeeChat 2.9)
2020-11-04 09:24:20 <dminuoso> [exa]: Will it be part of glasgow-exts?
2020-11-04 09:24:41 __monty__ joins (~toonn@unaffiliated/toonn)
2020-11-04 09:24:50 <dminuoso> Also, perhaps we could enable it by default with TypeInType
2020-11-04 09:25:08 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 272 seconds)
2020-11-04 09:26:53 ahmr88 joins (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net)
2020-11-04 09:29:14 <typetetris> Is there a compiler/rts option to always open stdin and the like in binary mode?
2020-11-04 09:30:01 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:31:27 kritzefitz joins (~kritzefit@p200300ecdf05be00f1ae985ba6d99bb3.dip0.t-ipconnect.de)
2020-11-04 09:32:15 × kritzefitz quits (~kritzefit@p200300ecdf05be00f1ae985ba6d99bb3.dip0.t-ipconnect.de) (Client Quit)
2020-11-04 09:34:00 × bliminse quits (~bliminse@host109-156-197-211.range109-156.btcentralplus.com) (Ping timeout: 272 seconds)
2020-11-04 09:34:23 bliminse joins (~bliminse@host109-156-197-211.range109-156.btcentralplus.com)
2020-11-04 09:34:43 <nshepperd> sounds like https://github.com/munificent/vigil
2020-11-04 09:35:16 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 265 seconds)
2020-11-04 09:36:25 <merijn> typetetris: Eh...there is no such thing?
2020-11-04 09:36:36 <merijn> typetetris: Do you mean unbuffered, maybe?
2020-11-04 09:36:56 Lycurgus joins (~niemand@98.4.97.110)
2020-11-04 09:37:20 × ahmr88 quits (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net) (Remote host closed the connection)
2020-11-04 09:40:10 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:41:09 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Read error: Connection reset by peer)
2020-11-04 09:41:25 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:42:02 <__monty__> Or maybe raw or cbreak terminal mode?
2020-11-04 09:43:56 <merijn> Way to flex that obscure pseudo-terminal knowledge :p
2020-11-04 09:44:16 daydaynatation joins (~user@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr)
2020-11-04 09:44:52 <typetetris> `https://hackage.haskell.org/package/base-4.14.0.0/docs/System-IO.html#v:hSetBinaryMode`
2020-11-04 09:45:50 <__monty__> merijn: That's what happens when you arm people with APUE : )
2020-11-04 09:45:52 <typetetris> Just had a pesky problem, where a program failed writing to stdout as the encoding associated with stdout was not able to represent all chars. An alternative to binary mode would be, to an encoding with replacement chars as default.
2020-11-04 09:46:25 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 264 seconds)
2020-11-04 09:46:34 <merijn> Or setting the right encoding? :p
2020-11-04 09:46:53 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection)
2020-11-04 09:46:58 <arahael> How would binary mode fix that?
2020-11-04 09:47:13 <typetetris> arahael: binary mode sets char8 as encoding, which never fails.
2020-11-04 09:47:22 <arahael> typetetris: So it corrupts the data?
2020-11-04 09:47:36 <typetetris> merijn: Yes. We tried. Didn't work. with-utf8 was the rescue.
2020-11-04 09:51:05 × idhugo quits (~idhugo@users-1190.st.net.au.dk) (Quit: Leaving)
2020-11-04 09:51:35 ensyde joins (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net)
2020-11-04 09:51:43 <tomsmeding> typetetris: does it work if you redirect the output to a file? So keep stdout in the usual text mode, but avoid actually writing it to the terminal
2020-11-04 09:52:06 <tomsmeding> (i.e. is haskell the problem or the terminal)
2020-11-04 09:53:01 <merijn> typetetris: eh, char8 doesn't fail, it just corrupts your output :p
2020-11-04 09:53:19 <merijn> typetetris: What are you outputting and to what?
2020-11-04 09:53:24 <typetetris> tomsmeding: We had a clear `<stdout>: invalid argument (invalid character)` exception. So the handle being set to an encoding not able to handle the output was the culprit.
2020-11-04 09:53:48 <tomsmeding> haskell threw that exception? ah
2020-11-04 09:53:50 <maerwald> ah I remeber that, you have to force encoding in your main, there's a ghc ticket
2020-11-04 09:53:50 <typetetris> merijn: Log output to be consumed by human readers. A replacement char here and there doesn't hurt.
2020-11-04 09:54:00 <typetetris> tomsmeding: yes
2020-11-04 09:54:47 <tomsmeding> what maerwald said, or perhaps (to avoid changing your program) pipe the output of your program through another program first that fixes up invalid characters (that may or may not work)
2020-11-04 09:54:47 × spamlessj quits (~spamlessj@2a01:4f8:141:1329::2) (Ping timeout: 272 seconds)
2020-11-04 09:54:52 <merijn> I mean, you can just use the IO functions from ByteString to write out stuff
2020-11-04 09:54:54 <tomsmeding> (not sure about windows' semantics in that regard)
2020-11-04 09:54:56 haasn` joins (~nand@mpv/developer/haasn)
2020-11-04 09:55:02 raid_ joins (macbookpro@irc-1.coding4.coffee)
2020-11-04 09:55:05 <typetetris> maerwald: And remember not only to use `setLocalEncoding` but also `hSetEncoding` (or some such) on all three `stdin`, `stdout` and `stderr`. That is at least unexpected for the haskell beginner comming from c :)
2020-11-04 09:55:07 × sphalerite quits (~sphalerit@NixOS/user/lheckemann) (Ping timeout: 260 seconds)
2020-11-04 09:55:07 × raid quits (macbookpro@irc-1.coding4.coffee) (Ping timeout: 260 seconds)
2020-11-04 09:55:25 × immae quits (~immae@2a01:4f8:141:53e7::) (Ping timeout: 272 seconds)
2020-11-04 09:55:52 <typetetris> merijn: Thats true. It is an existing codebase and up to now, there hasn't been fancy chars in the output.
2020-11-04 09:56:03 × dxld quits (~dxld@2a01:4f8:201:89ff:7479:df6a:7ab8:8305) (Ping timeout: 272 seconds)
2020-11-04 09:56:03 × yorick quits (~yorick@oftn/oswg-member/yorick) (Ping timeout: 272 seconds)
2020-11-04 09:56:03 × haasn quits (~nand@mpv/developer/haasn) (Ping timeout: 272 seconds)
2020-11-04 09:56:03 × Blkt quits (~Blkt@2a01:4f8:200:2425::adda) (Ping timeout: 272 seconds)
2020-11-04 09:56:03 × i7c quits (C10NftuPJ8@unaffiliated/i7c) (Ping timeout: 272 seconds)
2020-11-04 09:56:03 × bwe_ quits (~bwe@2a01:4f8:1c1c:4878::2) (Ping timeout: 272 seconds)
2020-11-04 09:56:09 <dminuoso> typetetris: Set the correct locale?
2020-11-04 09:56:18 BjarniRunar1 joins (~BjarniRun@84.39.116.180)
2020-11-04 09:56:21 × ensyde quits (~ensyde@99-185-235-117.lightspeed.chrlnc.sbcglobal.net) (Ping timeout: 258 seconds)
2020-11-04 09:56:49 dxld joins (~dxld@80-109-136-248.cable.dynamic.surfer.at)
2020-11-04 09:57:02 <maerwald> typetetris: https://gitlab.haskell.org/ghc/ghc/-/issues/8118
2020-11-04 09:57:05 bwe joins (~bwe@unaffiliated/bwe)
2020-11-04 09:57:06 <tomsmeding> I have a hard time believing that bytestring IO functions will avoid this exception
2020-11-04 09:57:10 Blkt joins (~Blkt@2a01:4f8:200:2425::adda)
2020-11-04 09:57:11 <typetetris> dminuoso: The program is sadly called in a convoluted process and our attempts to push `LANG` and `LC_CTYPE` settings to it failed. I know, thats bad, but it is what it is.
2020-11-04 09:57:14 sphalerite joins (~sphalerit@NixOS/user/lheckemann)
2020-11-04 09:57:19 immae joins (~immae@2a01:4f8:141:53e7::)
2020-11-04 09:57:29 <maerwald> This is a ghc bug
2020-11-04 09:57:31 <typetetris> tomsmeding: Yes.
2020-11-04 09:57:41 haasn` is now known as haasn

All times are in UTC.