Logs: freenode/#haskell
| 2020-09-21 09:26:39 | <phadej> | maerwald: specifically, I'd ask you to not add that to ghcup |
| 2020-09-21 09:26:44 | <phadej> | to not confuse shit out of users |
| 2020-09-21 09:27:00 | <maerwald> | what's confusing about it? |
| 2020-09-21 09:27:32 | <phadej> | if there would be an bug report "GHC-9.0.1-alpha1 regresses ..." |
| 2020-09-21 09:27:34 | <maerwald> | phadej: also, ben uploaded that and signed it with his key |
| 2020-09-21 09:27:44 | <cheater> | hi |
| 2020-09-21 09:28:03 | <cheater> | is vty still the best thing for creating simple curses style UIs or is there something else you would suggest |
| 2020-09-21 09:28:15 | <merijn> | vty is low level |
| 2020-09-21 09:28:24 | <merijn> | For something higher level, probably you want brick |
| 2020-09-21 09:28:27 | → | acidjnk_new2 joins (~acidjnk@p200300d0c73658819d57354728142a5b.dip0.t-ipconnect.de) |
| 2020-09-21 09:28:53 | <merijn> | cheater: vty deals with terminal emulation, brick deals with "using vty to draw widgets and stuff" |
| 2020-09-21 09:29:17 | <cheater> | i want to create a very simple text editor |
| 2020-09-21 09:29:25 | <cheater> | vim style |
| 2020-09-21 09:29:43 | <[exa]> | you really want brick |
| 2020-09-21 09:29:50 | × | jedws quits (~jedws@121.209.139.222) (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 2020-09-21 09:29:58 | <merijn> | Prepare to be surprised how comlex text editing is :p |
| 2020-09-21 09:30:08 | <maerwald> | merijn: yeah, I looked into yi... whew |
| 2020-09-21 09:30:28 | <cheater> | all it'll do is move lines up and down. that's all. |
| 2020-09-21 09:30:35 | <merijn> | Was it Atom that took like 5 years before it could open files ? 5 MB |
| 2020-09-21 09:30:36 | <cheater> | maybe edit them and add new ones or remove some. |
| 2020-09-21 09:30:52 | <merijn> | cheater: Yeah...that's harder than you think :p |
| 2020-09-21 09:30:52 | <cheater> | file size limited to 100k. |
| 2020-09-21 09:31:01 | <cheater> | merijn: oookay |
| 2020-09-21 09:31:16 | → | carlomagno1 joins (~cararell@inet-hqmc01-o.oracle.com) |
| 2020-09-21 09:31:17 | <maerwald> | 100k is a very precise unit |
| 2020-09-21 09:31:21 | <cheater> | brick says "This package deprecates vty-ui." ahh i've been using vty-ui |
| 2020-09-21 09:31:22 | <merijn> | I have a 30 page paper on "data structure for text editing" :p |
| 2020-09-21 09:31:28 | <cheater> | wow can y'all stop lol |
| 2020-09-21 09:31:40 | <merijn> | cheater: yeah, brick is the successor of vty-ui |
| 2020-09-21 09:31:40 | <[exa]> | cheater: isn't that motivating? :] |
| 2020-09-21 09:31:44 | <maerwald> | we're trying to encourage you |
| 2020-09-21 09:31:49 | <cheater> | no, it's boring |
| 2020-09-21 09:31:54 | <cheater> | i have enough problems as it is |
| 2020-09-21 09:31:56 | <maerwald> | it's so hard, you must do it |
| 2020-09-21 09:32:10 | <Cheery> | there was a library in haskell for rendering text |
| 2020-09-21 09:32:13 | <tomsmeding> | cheater: I've written a terminal text editor in c++ without using any terminal library at all |
| 2020-09-21 09:32:14 | <boxscape> | wait... Div and Mod seem to work, even though Gcd and Lcm don't |
| 2020-09-21 09:32:14 | <maerwald> | (isn't that what motivates haskellers?) |
| 2020-09-21 09:32:22 | <tomsmeding> | if I can do that you can do it with the niceties that haskell gives you |
| 2020-09-21 09:32:24 | <cheater> | tomsmeding: nice |
| 2020-09-21 09:32:34 | → | mirrorbird joins (~psutcliff@2a00:801:44a:a00b:20c3:c64:eb15:73a2) |
| 2020-09-21 09:32:42 | <cheater> | yeah i'm just writing a small manual decompiling helper |
| 2020-09-21 09:32:50 | <tomsmeding> | (before you actually go and look at that c++ code beware it's ugly and bad) |
| 2020-09-21 09:32:55 | <cheater> | like, be able to move lines around without violating semantics |
| 2020-09-21 09:32:57 | <cheater> | that's all really |
| 2020-09-21 09:32:57 | × | carlomagno quits (~cararell@inet-hqmc02-o.oracle.com) (Ping timeout: 258 seconds) |
| 2020-09-21 09:32:59 | <boxscape> | oh but that's because I'm using Div and Mod from a different package, never mind |
| 2020-09-21 09:33:04 | <[exa]> | cheater: o nice, decompiling what precisely? |
| 2020-09-21 09:33:06 | <tomsmeding> | boxscape: :D |
| 2020-09-21 09:33:06 | <boxscape> | (base) |
| 2020-09-21 09:33:13 | <cheater> | shader assembly |
| 2020-09-21 09:33:28 | <tomsmeding> | boxscape: perhaps their implementation in base can suggest how to implement Gcd in constraints |
| 2020-09-21 09:33:33 | <boxscape> | yeah, good point |
| 2020-09-21 09:33:46 | <boxscape> | wait |
| 2020-09-21 09:33:48 | <boxscape> | they're built in |
| 2020-09-21 09:33:51 | <[exa]> | cheater: very cool |
| 2020-09-21 09:33:53 | <cheater> | i decompiled it by hand already but i introduced a bug and it's going to be impossible to track down, so i'm gonna do this now |
| 2020-09-21 09:34:03 | <cheater> | i commuted some lines that i shouldn't have |
| 2020-09-21 09:34:04 | <cheater> | i think |
| 2020-09-21 09:34:07 | <merijn> | ah, rats |
| 2020-09-21 09:34:14 | <tomsmeding> | cheater: https://xkcd.com/1205/ |
| 2020-09-21 09:34:18 | <merijn> | I can't find a copy of the PDF i was talking about now |
| 2020-09-21 09:34:22 | <cheater> | i'm not clicking any xkcd links |
| 2020-09-21 09:34:56 | <tomsmeding> | merijn: pity |
| 2020-09-21 09:36:24 | <tomsmeding> | merijn: it's not this one by any chance? https://www.cs.unm.edu/~crowley/papers/sds.pdf |
| 2020-09-21 09:36:43 | <merijn> | Ooh, looks like it |
| 2020-09-21 09:36:49 | <merijn> | cheater: ^^ that one :) |
| 2020-09-21 09:37:07 | <gnumonik> | Hello. I'm trying to generate parsers for records automatically using TH. Have a function that gives me a 'Q (Parser a)', but I can't figure out how to turn that into an exp so it's unusable. Is there some way to do that or is it impossible? |
| 2020-09-21 09:37:14 | <gnumonik> | Am new to TH |
| 2020-09-21 09:37:31 | <merijn> | gnumonik: You need to unquote it via $() |
| 2020-09-21 09:37:45 | <cheater> | merijn: what is it? |
| 2020-09-21 09:38:05 | <merijn> | If "foo :: Q (Parser a)" then 'bar $(foo)' is "splice the AST of 'foo' in the code here" |
| 2020-09-21 09:38:18 | <cheater> | oh yea no idc i'll just put everything in a list |
| 2020-09-21 09:38:41 | → | ces joins (~ces@52d3ce3c.dynamic-ip.k-net.dk) |
| 2020-09-21 09:38:52 | <cheater> | just so you understand where i'm at |
| 2020-09-21 09:39:45 | <merijn> | hmm, I forget how to specify ghc-options for only local packages in cabal.project (i.e. as opposed to for all transitive dependencies) |
| 2020-09-21 09:40:37 | <gnumonik> | I've tried splicing it but it doesn't work. I think it's because I have a Q Parser and not a Q exp. |
| 2020-09-21 09:40:43 | → | ixlun joins (~matthew@213.205.241.81) |
| 2020-09-21 09:41:13 | <cheater> | does Vty work on windows btw? |
| 2020-09-21 09:41:16 | <cheater> | it works, right? |
| 2020-09-21 09:41:38 | <merijn> | gnumonik: oh, wait, yeah |
| 2020-09-21 09:41:45 | <cheater> | hmm i'm not seeing any mention of windows |
| 2020-09-21 09:41:55 | <merijn> | gnumonik: Can you pastebin/gist the code? |
| 2020-09-21 09:42:04 | → | ph88 joins (~ph88@2a02:8109:9e40:2704:b503:e755:2c19:955c) |
| 2020-09-21 09:42:13 | <merijn> | cheater: It supports windows for users who have/use a proper terminal emulator |
| 2020-09-21 09:42:19 | <merijn> | cheater: So..."maybe" |
| 2020-09-21 09:42:21 | <cheater> | how do i do that |
| 2020-09-21 09:42:25 | <cheater> | is powershell proper |
| 2020-09-21 09:42:30 | <merijn> | No clue |
| 2020-09-21 09:42:58 | <merijn> | That's a messy swamp of complicated questions and ridiculously archaic technology your asking questions about :p |
| 2020-09-21 09:42:59 | → | sagax joins (~sagax_nb@213.138.71.146) |
| 2020-09-21 09:44:06 | <gnumonik> | It's pretty long and I need a sec to unbreak it, I was trying something and I ran out of undo space in VSCode |
| 2020-09-21 09:44:18 | <cheater> | hmm i need to get git on this machine as well |
| 2020-09-21 09:44:23 | <gnumonik> | But yeah. It just seems like there's no way to get the Parser into an Exp :-( |
| 2020-09-21 09:44:34 | <cheater> | what's the least painful way to have git on windows? sorry for OT |
| 2020-09-21 09:45:12 | <mirrorbird> | installing linux probably |
| 2020-09-21 09:45:17 | <[exa]> | cheater: the linux subsystem kinda works, msysgit/tortoisegit also work, but the least painful way is likely to...yeah ^^ |
| 2020-09-21 09:45:30 | <cheater> | mirrorbird: no |
| 2020-09-21 09:46:12 | <mirrorbird> | how do you know? |
| 2020-09-21 09:46:36 | <merijn> | gitbash |
All times are in UTC.