2025/10/11

2025-10-11 00:02:25 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-10-11 00:04:10 +0200target_i(~target_i@user/target-i/x-6023099) (Quit: leaving)
2025-10-11 00:05:15 +0200ttybitnik(~ttybitnik@user/wolper) (Ping timeout: 244 seconds)
2025-10-11 00:07:56 +0200ttybitnik(~ttybitnik@user/wolper) ttybitnik
2025-10-11 00:09:36 +0200Zemy(~Zemy@syn-072-176-124-082.res.spectrum.com)
2025-10-11 00:11:22 +0200chromoblob(~chromoblo@user/chromob1ot1c) chromoblob\0
2025-10-11 00:12:55 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 00:18:01 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2025-10-11 00:24:37 +0200peterbecich(~Thunderbi@syn-172-222-148-214.res.spectrum.com) (Ping timeout: 264 seconds)
2025-10-11 00:28:45 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 00:33:40 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 244 seconds)
2025-10-11 00:34:00 +0200 <haskellbridge> <Kyle Butt> Tri: It would be more normal to connect and then pass the connection to "testGetRow"
2025-10-11 00:34:42 +0200 <haskellbridge> <Kyle Butt> Tri: If you want the connection to be in a helper, you could do something like "conn <- testConnect"
2025-10-11 00:35:43 +0200 <EvanR> Tri, yes there are standard ways to make your code more modular and useful in more places. Stuff takes a conn as an argument for example
2025-10-11 00:37:07 +0200 <EvanR> any database access is relative to a database connection after all
2025-10-11 00:38:08 +0200 <EvanR> worst case scenario you need a top level helper for a test that access then same code your main app uses
2025-10-11 00:39:27 +0200 <haskellbridge> <Kyle Butt> Tri You could use "bracket" to write a "withConnection" helper that keeps the connection open only inside the body function that accepts the connection as an argument. Similar to "with" in python.
2025-10-11 00:39:33 +0200 <EvanR> as a defacto rule, many programming styles that work in imperative languages or side effecting languages don't work in haskell. Because laziness would make that insane
2025-10-11 00:40:09 +0200 <EvanR> yeah bracket pattern is great, i.e. withConnection
2025-10-11 00:44:30 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 00:48:41 +0200Tri(~Tri@69.74.159.34) (Ping timeout: 250 seconds)
2025-10-11 00:48:43 +0200weary-traveler(~user@user/user363627) user363627
2025-10-11 00:48:49 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au) (Ping timeout: 255 seconds)
2025-10-11 00:49:08 +0200trickard_(~trickard@cpe-50-98-47-163.wireline.com.au)
2025-10-11 00:49:33 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 260 seconds)
2025-10-11 01:00:18 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 01:03:08 +0200LainIwakura(~LainIwaku@user/LainIwakura) LainIwakura
2025-10-11 01:07:02 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2025-10-11 01:10:36 +0200Googulator16(~Googulato@2a01-036d-0106-03fa-dc7a-fb6e-71bb-aaf0.pool6.digikabel.hu)
2025-10-11 01:10:38 +0200Googulator29(~Googulato@2a01-036d-0106-03fa-dc7a-fb6e-71bb-aaf0.pool6.digikabel.hu) (Quit: Client closed)
2025-10-11 01:12:20 +0200Tuplanolla(~Tuplanoll@91-159-187-167.elisa-laajakaista.fi) (Quit: Leaving.)
2025-10-11 01:24:34 +0200malte(~malte@mal.tc) (Ping timeout: 260 seconds)
2025-10-11 01:33:47 +0200malte(~malte@mal.tc) malte
2025-10-11 01:33:53 +0200040AAE6OC(~{-d0t-}@user/-d0t-/x-7915216) (Remote host closed the connection)
2025-10-11 01:34:46 +0200_d0t(~{-d0t-}@user/-d0t-/x-7915216) {-d0t-}
2025-10-11 01:51:34 +0200ttybitnik(~ttybitnik@user/wolper) (Quit: Fading out...)
2025-10-11 01:54:21 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 01:59:27 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2025-10-11 02:01:54 +0200Inline(~inline@2a02:8071:57a1:1260:249e:867e:200a:1fb1) (Quit: Leaving)
2025-10-11 02:06:56 +0200 <haskellbridge> <dxtr> Is it possible to move the head of a NonEmpty to the end without too much hassle?
2025-10-11 02:10:10 +0200merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-10-11 02:13:46 +0200 <geekosaur> it's still a list underneath, so not really. maybe you want a Seq?