Logs: freenode/#haskell
| 2020-09-22 17:22:28 | → | brown121407 joins (~brown1214@fsf/member/brown121407) |
| 2020-09-22 17:25:37 | → | thir joins (~thir@p200300f27f0fc600ed2222922a5678d5.dip0.t-ipconnect.de) |
| 2020-09-22 17:30:37 | × | Guest_91 quits (84ccf37c@x-132-204-243-124.xtpr.umontreal.ca) (Remote host closed the connection) |
| 2020-09-22 17:31:07 | <geekosaur> | hm. I think ircbrowse used to keep track of #ghc as well |
| 2020-09-22 17:31:24 | <geekosaur> | (also the error message for an unknown channel is kinda unfortunate) |
| 2020-09-22 17:31:28 | × | dyeplexer quits (~lol@unaffiliated/terpin) (Remote host closed the connection) |
| 2020-09-22 17:32:15 | × | gawen quits (~gawen@movzbl.root.sx) (Quit: cya) |
| 2020-09-22 17:33:14 | × | kritzefitz quits (~kritzefit@212.86.56.80) (Remote host closed the connection) |
| 2020-09-22 17:33:22 | × | slack1256 quits (~slack1256@181.203.58.122) (Ping timeout: 256 seconds) |
| 2020-09-22 17:33:31 | <geekosaur> | maerwald, I'd doubt it re escapes; it's tricky at best |
| 2020-09-22 17:33:37 | × | isovector1 quits (~isovector@node-1w7jr9squrfoy3fci95ksrhpu.ipv6.telus.net) (Ping timeout: 260 seconds) |
| 2020-09-22 17:33:54 | <maerwald> | brick deals with it correctly, but I can't use brick to just print to screen |
| 2020-09-22 17:34:08 | → | gawen joins (~gawen@movzbl.root.sx) |
| 2020-09-22 17:34:11 | × | tomku quits (~tomku@unaffiliated/tomku) (Ping timeout: 240 seconds) |
| 2020-09-22 17:34:16 | <maerwald> | table-layout has too many bugs |
| 2020-09-22 17:34:36 | → | dead10cc joins (63f22acf@gateway/web/cgi-irc/kiwiirc.com/ip.99.242.42.207) |
| 2020-09-22 17:34:48 | → | tomku joins (~tomku@unaffiliated/tomku) |
| 2020-09-22 17:34:51 | <geekosaur> | although there are cheaty ways if you stick to a subset of escapes |
| 2020-09-22 17:35:29 | <sm[m]> | hledger deals with it somehow (using tabular and helpers in Hledger.Utils.String or so) |
| 2020-09-22 17:35:47 | <maerwald> | sm[m]: please make it a library... |
| 2020-09-22 17:36:12 | <sm[m]> | I can't afford it |
| 2020-09-22 17:36:27 | <maerwald> | why... how much funding you need |
| 2020-09-22 17:36:40 | <sm[m]> | those are two issues, right.. dealing with wide unicode characters, and dealing with ansi escapes ? |
| 2020-09-22 17:37:01 | <maerwald> | yeah, I don't know which one affects me and I don't really want to know |
| 2020-09-22 17:37:18 | <sm[m]> | hehe |
| 2020-09-22 17:37:34 | × | palmer67 quits (47cc944a@c-71-204-148-74.hsd1.ca.comcast.net) (Ping timeout: 245 seconds) |
| 2020-09-22 17:38:01 | × | alp quits (~alp@2a01:e0a:58b:4920:79c5:27e3:c619:e1ff) (Ping timeout: 272 seconds) |
| 2020-09-22 17:38:11 | <sm[m]> | https://hackage.haskell.org/package/hledger-lib-1.19.1/docs/Hledger-Utils-String.html#v:stripAnsi removes ansi, probably this exists in some lib too |
| 2020-09-22 17:38:29 | → | ukari joins (~ukari@unaffiliated/ukari) |
| 2020-09-22 17:38:30 | → | DavidEichmann joins (~david@43.240.198.146.dyn.plus.net) |
| 2020-09-22 17:38:44 | <monochrom> | Necessity is the mother of yak shaving. :) |
| 2020-09-22 17:39:09 | <sm[m]> | https://hackage.haskell.org/package/hledger-lib-1.19.1/docs/Hledger-Utils-String.html#v:strWidth calculates width, accounting for wide chars and ignoring ansi codes |
| 2020-09-22 17:39:49 | <maerwald> | it's like... you want to drink a coffee and you end up flying to Africa, buying a plantation, growing coffee beans, figuring out logistics and how to ship your crap. Then 20 years later you get to drink the damn coffee. |
| 2020-09-22 17:40:45 | <maerwald> | sm[m]: interesting |
| 2020-09-22 17:40:54 | <monochrom> | I think that's how coffee company empires were built. |
| 2020-09-22 17:41:17 | × | coot quits (~coot@37.30.51.178.nat.umts.dynamic.t-mobile.pl) (Quit: coot) |
| 2020-09-22 17:41:21 | <sm[m]> | see also https://hackage.haskell.org/package/hledger-lib-1.19.1/docs/Hledger-Utils-Text.html |
| 2020-09-22 17:41:45 | × | John20 quits (~John@82.46.59.122) (Ping timeout: 240 seconds) |
| 2020-09-22 17:42:27 | <maerwald> | monochrom: I know right... it's always the little things where you think "this should just take a minute" and then it derails your life |
| 2020-09-22 17:43:09 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2020-09-22 17:43:19 | <monochrom> | I wouldn't call it "derail" if the side effect is you become a tycoon of something and get rich. |
| 2020-09-22 17:43:42 | <maerwald> | you're just trying to manipulate me into fixing this |
| 2020-09-22 17:43:46 | <geekosaur> | but I'm still waiting for my <redacted> coffee! |
| 2020-09-22 17:43:47 | <maerwald> | that won't work! |
| 2020-09-22 17:43:49 | <monochrom> | :) |
| 2020-09-22 17:43:53 | → | machinedgod joins (~machinedg@d67-193-126-196.home3.cgocable.net) |
| 2020-09-22 17:44:50 | <sm[m]> | <gazing into space> hmm, if only someone had time to extract my utils into a library... |
| 2020-09-22 17:45:31 | <monochrom> | I have Dyson in mind. The vacuum cleaner Dyson. He was very dissatisfied by the vacuum cleaners before his, so he did the yak shaving of making his own (fortunately, he also had the know-how to). As a side effect, he's a tycoon of this business now, and goes on to sell hair dryers in addition. |
| 2020-09-22 17:46:30 | <maerwald> | imagine a multi-functional vacuum cleaner, which also works as a hair dryer |
| 2020-09-22 17:46:51 | <maerwald> | just be sure to press the right button |
| 2020-09-22 17:47:11 | → | bahamas joins (~lucian@unaffiliated/bahamas) |
| 2020-09-22 17:47:17 | → | confundus joins (~confundus@132.145.106.146) |
| 2020-09-22 17:47:19 | <maerwald> | (and a leaf blower) |
| 2020-09-22 17:47:43 | → | jespada joins (~jespada@90.254.241.6) |
| 2020-09-22 17:47:44 | × | chrisdotcode quits (~chrisdotc@unaffiliated/chrisdotcode) (Remote host closed the connection) |
| 2020-09-22 17:48:06 | → | chrisdotcode joins (~chrisdotc@unaffiliated/chrisdotcode) |
| 2020-09-22 17:48:26 | <maerwald> | why do discussions about ansi terminal always end up with vacuum cleaners? Because it sucks! |
| 2020-09-22 17:48:35 | <monochrom> | hahaha |
| 2020-09-22 17:48:51 | <monochrom> | And leaf blowers? Because it blows! |
| 2020-09-22 17:49:13 | <maerwald> | sm[m]: please rescue us |
| 2020-09-22 17:49:36 | <maerwald> | you have the know-how... just need to become tycoon now |
| 2020-09-22 17:49:58 | <sm[m]> | urgh it's not so easy |
| 2020-09-22 17:50:19 | <maerwald> | you're a good sales man |
| 2020-09-22 17:50:31 | maerwald | increases the offer |
| 2020-09-22 17:50:37 | → | pera joins (~pera@unaffiliated/pera) |
| 2020-09-22 17:50:52 | × | confundus quits (~confundus@132.145.106.146) (Client Quit) |
| 2020-09-22 17:52:22 | <maerwald> | how do you build a table now? |
| 2020-09-22 17:52:32 | <sm[m]> | maerwald: I just saw your https://github.com/muesli4/table-layout/issues/8 screenshot.. like the commenter said, that's just being caused by the colour codes, yes ? is the bug in table-layout then ? |
| 2020-09-22 17:52:46 | <maerwald> | where else would the bug be |
| 2020-09-22 17:54:53 | → | natrys joins (~natrys@132.145.106.146) |
| 2020-09-22 17:54:57 | → | mirrorbird joins (~psutcliff@2a00:801:44a:a00b:20c3:c64:eb15:73a2) |
| 2020-09-22 17:55:24 | → | heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) |
| 2020-09-22 17:55:46 | → | acidjnk_new2 joins (~acidjnk@p200300d0c7365847cc6a0d2723d0128d.dip0.t-ipconnect.de) |
| 2020-09-22 17:55:49 | <maerwald> | I think I'll just implement this myself... doing a table isn't that hard |
| 2020-09-22 17:56:04 | <maerwald> | only when you want to support all sorts of weird configurations |
| 2020-09-22 17:56:09 | <sm[m]> | I use those utils + tabular. It shouldn't be that hard to add a similar fix in table-layout though. |
| 2020-09-22 17:57:37 | × | natrys quits (~natrys@132.145.106.146) (Client Quit) |
| 2020-09-22 17:58:17 | <maerwald> | sm[m]: can it do normal line by line output without table frames and delimiters? |
| 2020-09-22 17:58:45 | <sm[m]> | tabular.. I don't think so.. |
| 2020-09-22 17:58:57 | <sm[m]> | I have munged its output when I wanted that |
| 2020-09-22 17:59:11 | <sm[m]> | oh I could be wrong |
| 2020-09-22 17:59:47 | × | heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds) |
| 2020-09-22 18:00:02 | × | tomatopotato quits (~tomatopot@s91904426.blix.com) () |
| 2020-09-22 18:00:14 | <tomsmeding> | maerwald: in that screenshot in that issue, what bytes does ghcup write to the terminal? |
| 2020-09-22 18:00:30 | <sm[m]> | oh nice, tabular is maintained now, by bgamari |
| 2020-09-22 18:00:41 | <tomsmeding> | because that looks suspiciously like it's trying to align with tabs where ghcup thinks tabs are width 4, and your terminal emulator thinks they're width 8 |
| 2020-09-22 18:00:42 | <tomsmeding> | :p |
| 2020-09-22 18:00:44 | <bgamari> | indeed; it's a nice package |
| 2020-09-22 18:00:54 | <sm[m]> | thanks bgamari ! |
| 2020-09-22 18:00:58 | <tomsmeding> | or... maybe not, since the columns are 9 characters apart |
| 2020-09-22 18:01:20 | × | spew quits (uid195861@gateway/web/irccloud.com/x-bhhgjdvsxlzecbgs) (Quit: Connection closed for inactivity) |
| 2020-09-22 18:01:20 | <maerwald> | tomsmeding: https://hackage.haskell.org/package/pretty-terminal-0.1.0.0/docs/src/System-Console-Pretty.html#Color |
| 2020-09-22 18:01:44 | <tomsmeding> | I was asking in particular about what characters make up the blank space between the columns :p |
| 2020-09-22 18:01:52 | <tomsmeding> | I know ansi color codes |
| 2020-09-22 18:02:04 | <maerwald> | it's probably ...space? |
| 2020-09-22 18:02:25 | <geekosaur> | the alternative being tabs, which is what tomsmeding was asking |
| 2020-09-22 18:02:38 | <tomsmeding> | or manual positioning using ansi cursor movement codes |
| 2020-09-22 18:02:48 | <dead10cc> | is there any document like "how haskellers program in x language" of from haskell to x language? |
| 2020-09-22 18:03:21 | <sm[m]> | yes, a few |
| 2020-09-22 18:04:04 | <tomsmeding> | maerwald: a way to get the actual stuff that a program is writing to the terminal is running it in `script(1)` |
All times are in UTC.