Logs: liberachat/#haskell
| 2021-08-17 21:37:41 | × | drownbes quits (~drownbes@200-149-20-81.sta.estpak.ee) (Quit: leaving) |
| 2021-08-17 21:37:56 | → | drownbes joins (~drownbes@200-149-20-81.sta.estpak.ee) |
| 2021-08-17 21:38:01 | <fernand> | Hi everyone. I'm trying to import housing data from Numeric.Datasets but the default source url is down (https://github.com/DataHaskell/dh-core/blob/master/datasets/src/Numeric/Datasets.hs#L326). Is there a way to switch the source url? |
| 2021-08-17 21:38:56 | <dsal> | fernand: That looks like it is a URL. Can't you just use a different one? |
| 2021-08-17 21:39:33 | × | drownbes quits (~drownbes@200-149-20-81.sta.estpak.ee) (Client Quit) |
| 2021-08-17 21:40:10 | × | mc47 quits (~mc47@xmonad/TheMC47) (Remote host closed the connection) |
| 2021-08-17 21:40:39 | → | eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-08-17 21:41:42 | → | Matthias1 joins (~Matthias1@cpe-76-170-236-166.socal.res.rr.com) |
| 2021-08-17 21:42:34 | × | __monty__ quits (~toonn@user/toonn) (Quit: leaving) |
| 2021-08-17 21:43:33 | → | drownbes joins (~drownbes@200-149-20-81.sta.estpak.ee) |
| 2021-08-17 21:43:33 | × | drownbes quits (~drownbes@200-149-20-81.sta.estpak.ee) (Client Quit) |
| 2021-08-17 21:44:18 | <fernand> | dsal that's what I would like to do, but I'm not sure how. |
| 2021-08-17 21:44:56 | × | machinedgod quits (~machinedg@24.105.81.50) (Read error: Connection reset by peer) |
| 2021-08-17 21:45:07 | → | machinedgod joins (~machinedg@24.105.81.50) |
| 2021-08-17 21:45:12 | <dsal> | Is your problem that something is using that URL and you want to use something different? I'm a bit confused because you could construct your own URL pretty easily, but it sounds like your problem may be something else. |
| 2021-08-17 21:46:09 | → | drownbes joins (~drownbes@200-149-20-81.sta.estpak.ee) |
| 2021-08-17 21:46:32 | × | Matthias1 quits (~Matthias1@cpe-76-170-236-166.socal.res.rr.com) (Read error: Connection reset by peer) |
| 2021-08-17 21:46:43 | → | Matthia__ joins (~Matthias1@2603-8001-b545-4900-4505-341a-d69c-0ea0.res6.spectrum.com) |
| 2021-08-17 21:48:51 | × | Matthia__ quits (~Matthias1@2603-8001-b545-4900-4505-341a-d69c-0ea0.res6.spectrum.com) (Remote host closed the connection) |
| 2021-08-17 21:49:20 | → | Matthias1 joins (~Matthias1@2603-8001-b545-4900-41c7-c56a-b23f-e72e.res6.spectrum.com) |
| 2021-08-17 21:49:28 | → | vysn joins (~vysn@user/vysn) |
| 2021-08-17 21:51:30 | × | eggplantade quits (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Remote host closed the connection) |
| 2021-08-17 21:51:51 | → | eggplantade joins (~Eggplanta@108-201-191-115.lightspeed.sntcca.sbcglobal.net) |
| 2021-08-17 21:52:17 | → | Matthia__ joins (~Matthias1@2603-8001-b545-4900-55c2-9e3a-8dc6-4263.res6.spectrum.com) |
| 2021-08-17 21:53:15 | × | drownbes quits (~drownbes@200-149-20-81.sta.estpak.ee) (Quit: leaving) |
| 2021-08-17 21:54:43 | → | Dima[m] joins (~reddima10@2001:470:69fc:105::366) |
| 2021-08-17 21:55:40 | × | Matthias1 quits (~Matthias1@2603-8001-b545-4900-41c7-c56a-b23f-e72e.res6.spectrum.com) (Ping timeout: 240 seconds) |
| 2021-08-17 22:05:13 | → | fresheyeball joins (~fresheyeb@c-71-237-105-37.hsd1.co.comcast.net) |
| 2021-08-17 22:08:49 | × | hnOsmium0001 quits (uid453710@id-453710.stonehaven.irccloud.com) (Quit: Connection closed for inactivity) |
| 2021-08-17 22:12:20 | → | cheater joins (~Username@user/cheater) |
| 2021-08-17 22:13:25 | × | benin036932 quits (~benin@183.82.178.142) (Ping timeout: 268 seconds) |
| 2021-08-17 22:14:10 | × | aarvar quits (~aaron@2601:602:a080:fa0:c9d0:9f94:946c:b2f0) (Ping timeout: 240 seconds) |
| 2021-08-17 22:17:36 | <lechner> | Hi, in source files, are SQL queries best entered as mklti-line strings? |
| 2021-08-17 22:17:45 | <lechner> | multi |
| 2021-08-17 22:18:20 | <monochrom> | Depends on whether it looks nicer? |
| 2021-08-17 22:18:41 | × | Erutuon quits (~Erutuon@user/erutuon) (Ping timeout: 248 seconds) |
| 2021-08-17 22:19:29 | × | michalz quits (~michalz@185.246.204.62) (Remote host closed the connection) |
| 2021-08-17 22:20:10 | → | benin036932 joins (~benin@183.82.178.142) |
| 2021-08-17 22:20:39 | → | dajoer joins (~david@user/gvx) |
| 2021-08-17 22:20:47 | <lechner> | it's too long for a single line. is there an alternative? |
| 2021-08-17 22:20:51 | → | Erutuon joins (~Erutuon@user/erutuon) |
| 2021-08-17 22:21:10 | <monochrom> | Then make it multi-line. |
| 2021-08-17 22:21:34 | → | hnOsmium0001 joins (uid453710@id-453710.stonehaven.irccloud.com) |
| 2021-08-17 22:22:13 | <lechner> | ouay, thanus! |
| 2021-08-17 22:22:25 | <lechner> | okay thanks! |
| 2021-08-17 22:22:41 | <lechner> | changed some keks |
| 2021-08-17 22:22:41 | <sm> | I often do s = unlines [ |
| 2021-08-17 22:22:41 | <sm> | ... |
| 2021-08-17 22:22:41 | <sm> | ] |
| 2021-08-17 22:22:59 | <lechner> | sm: i liue that! |
| 2021-08-17 22:23:04 | <lechner> | like |
| 2021-08-17 22:23:06 | <sm> | there are nice libs like `here` but they bring complications |
| 2021-08-17 22:23:51 | <lechner> | as a previous Perl addict, i'll explore |
| 2021-08-17 22:24:19 | <sm> | quasiquoter, so maybe less well supported by some |
| 2021-08-17 22:24:19 | <sm> | platforms/some tools, eg |
| 2021-08-17 22:24:45 | <monochrom> | unlines inserts newlines. not sure you want newlines in the middle of a SQL query. |
| 2021-08-17 22:24:59 | <sm> | and just another dependency, so another source of problems |
| 2021-08-17 22:25:34 | <lechner> | hm |
| 2021-08-17 22:25:49 | <sm> | oh I think those are fine for postgres at least ? if not then yes, unwords |
| 2021-08-17 22:27:23 | <monochrom> | unwords is more intuitive, yeah, you do expect to insert a space into ["select", "foo", "where"], which even multi-line string doesn't do for you and you'll be puzzled. |
| 2021-08-17 22:27:57 | × | acidjnk_new3 quits (~acidjnk@p200300d0c72b955208843bbbc6b733a4.dip0.t-ipconnect.de) (Ping timeout: 245 seconds) |
| 2021-08-17 22:28:26 | → | notzmv joins (~zmv@user/notzmv) |
| 2021-08-17 22:29:10 | <monochrom> | ah I guess SQL uses ; to mark the end, so it is happy with newlines left right and centre. |
| 2021-08-17 22:29:27 | <hpc> | left right and inner |
| 2021-08-17 22:30:22 | <sm> | it's nice to see a a big query nicely formatted on multiple lines in logs, when debugging etc |
| 2021-08-17 22:30:26 | <hpc> | i vote multiline strings |
| 2021-08-17 22:30:40 | <hpc> | it's a bit ugly, but having to faff about with list syntax is worse imo |
| 2021-08-17 22:31:11 | <sm> | hpc: what kind are those again ? something with / line endings ? |
| 2021-08-17 22:31:35 | <monochrom> | \ |
| 2021-08-17 22:31:48 | <monochrom> | "hello I am \ |
| 2021-08-17 22:31:53 | <monochrom> | \monochrom" |
| 2021-08-17 22:32:58 | <sm> | yeah those seem really ugly and tool-unfriendly but I will give it another try |
| 2021-08-17 22:33:20 | <monochrom> | In fact, it doesn't have to have a newline in the middle. It's generally \whitespaces\ |
| 2021-08-17 22:33:32 | <monochrom> | > "hello I am \ \monochrom" |
| 2021-08-17 22:33:34 | <lambdabot> | "hello I am monochrom" |
| 2021-08-17 22:34:36 | <hpc> | in my experience the only tool that matters is ghc :P |
| 2021-08-17 22:35:00 | <sm> | hm, not for me |
| 2021-08-17 22:35:09 | <monochrom> | I would blame it on the tools if they're unfriendly to a piece of very-standardized-for-over-20-years Haskell syntax that merely needs a simple regex to recognize. |
| 2021-08-17 22:35:30 | × | hiruji` quits (~hiruji@2606:6080:1001:18:8d41:9604:d435:36b6) (Quit: ZNC 1.8.2 - https://znc.in) |
| 2021-08-17 22:35:40 | × | fernand quits (~fernand@179.156.35.4) (Ping timeout: 240 seconds) |
| 2021-08-17 22:35:42 | <monochrom> | We are not even talking about recognizing layouts. |
| 2021-08-17 22:35:58 | <sm> | ha, surely a simple regex will solve everything |
| 2021-08-17 22:36:25 | <hpc> | it'll certainly solve most regular problems :P |
| 2021-08-17 22:36:28 | <monochrom> | But emacs haskell-mode works pretty much correctly with this one. |
| 2021-08-17 22:37:10 | <glguy> | My vim recognizes haskell's multiline strings. I forget if that's default or not though |
| 2021-08-17 22:37:12 | <monochrom> | It does still have a bug but it can be mitigated by deleting and re-inserting some double quotes. |
| 2021-08-17 22:38:15 | <sm> | these paper cuts add up |
| 2021-08-17 22:38:37 | <hpc> | my vim gets confused sometimes by multiline strings, but that's just syntax highlighting |
| 2021-08-17 22:38:37 | <sm> | i'd be interested to know what percentage of haskell projects use that syntax |
| 2021-08-17 22:38:46 | <hpc> | my ide is a vertical split terminal with ghci on one side |
| 2021-08-17 22:38:52 | <glguy> | I redid the haskell.vim syntax highlighting locally |
| 2021-08-17 22:39:22 | × | Atum_ quits (~IRC@user/atum/x-2392232) (Quit: Atum_) |
| 2021-08-17 22:41:01 | <sm> | hpc: not even ghcid ? brutal :) |
| 2021-08-17 22:41:33 | <monochrom> | I haven't needed ghcid since -fdefer-type-errors was introduced. |
| 2021-08-17 22:41:44 | × | vysn quits (~vysn@user/vysn) (Remote host closed the connection) |
| 2021-08-17 22:42:22 | <hpc> | i like minimalism |
| 2021-08-17 22:42:30 | <glguy> | Just having ghcid's reload-on-save behavior changes the way I write Haskell |
| 2021-08-17 22:42:56 | <hpc> | (also i have learned minimalism over time - sometimes i use vi instead of vim because i don't know what's installed) |
| 2021-08-17 22:43:20 | <monochrom> | I use vim.tiny. vi lacks cursor keys. |
| 2021-08-17 22:43:54 | <hpc> | it's probably vim.tiny, just whatever the distro's /bin/vi is |
All times are in UTC.