2025/11/19

Newest at the top

2025-11-19 23:36:00 +0100 <Square2> c_wraith, thanks!
2025-11-19 23:32:41 +0100 <c_wraith> You can also introspect the output of a QuasiQuoter by making use of the fact that they're just regular haskell values, and you can use their API: https://hackage-content.haskell.org/package/template-haskell-2.23.0.0/docs/Language-Haskell-TH-Quo…
2025-11-19 23:32:19 +0100Fijxu(~Fijxu@user/fijxu) fijxu
2025-11-19 23:32:08 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 260 seconds)
2025-11-19 23:31:44 +0100 <Square2> `dump :: Ppr a => Q a -> IO () ; dump q = putStrLn . pprint =<< runQ q`
2025-11-19 23:31:24 +0100 <Square2> I resorted to an LLM. 1 out of 4 suggestions actually worked.
2025-11-19 23:30:59 +0100 <Square2> ops.. missed this.
2025-11-19 23:29:31 +0100Fijxu(~Fijxu@user/fijxu) (Quit: XD!!)
2025-11-19 23:28:39 +0100 <c_wraith> Between the two of those, your ability to check most stuff should be good
2025-11-19 23:28:04 +0100 <c_wraith> LitE (IntegerL 1)
2025-11-19 23:28:04 +0100 <c_wraith> ghci> runQ [| 1 |]
2025-11-19 23:28:02 +0100 <c_wraith> err, runQ
2025-11-19 23:27:54 +0100 <c_wraith> But if you want to introspect further, you can use runIO
2025-11-19 23:27:39 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 23:27:05 +0100 <c_wraith> ---> 1
2025-11-19 23:27:05 +0100 <c_wraith> ghci> $([| 1 |])
2025-11-19 23:26:47 +0100 <c_wraith> So you can splice expressions into ghci, like so:
2025-11-19 23:24:59 +0100Googulator16Googulator
2025-11-19 23:22:25 +0100 <Square2> is there some way to test template haskell output except -ddump-splices? Either in ghci or using some "to text" method on a template haskell generator function?
2025-11-19 23:19:44 +0100Fijxu(~Fijxu@user/fijxu) fijxu
2025-11-19 23:19:02 +0100trickard(~trickard@cpe-62-98-47-163.wireline.com.au)
2025-11-19 23:18:50 +0100trickard(~trickard@cpe-62-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-11-19 23:18:37 +0100Fijxu(~Fijxu@user/fijxu) (Quit: XD!!)
2025-11-19 23:16:52 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 23:14:52 +0100emmanuelux(~emmanuelu@user/emmanuelux) emmanuelux
2025-11-19 23:14:13 +0100itaipu(~itaipu@168.121.97.28) itaipu
2025-11-19 23:12:47 +0100trickard_trickard
2025-11-19 23:12:17 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 23:01:52 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 22:58:15 +0100itaipu(~itaipu@168.121.97.28) (Read error: Connection reset by peer)
2025-11-19 22:56:53 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 22:53:07 +0100target_i(~target_i@user/target-i/x-6023099) (Quit: leaving)
2025-11-19 22:46:52 +0100michalz(~michalz@185.246.207.205) (Remote host closed the connection)
2025-11-19 22:46:16 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 22:46:05 +0100trickard_(~trickard@cpe-62-98-47-163.wireline.com.au)
2025-11-19 22:45:51 +0100trickard_(~trickard@cpe-62-98-47-163.wireline.com.au) (Read error: Connection reset by peer)
2025-11-19 22:44:31 +0100peterbecich(~Thunderbi@172.222.148.214) (Ping timeout: 246 seconds)
2025-11-19 22:41:29 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 22:39:00 +0100takuan(~takuan@d8D86B9E9.access.telenet.be) (Remote host closed the connection)
2025-11-19 22:36:17 +0100peterbecich(~Thunderbi@172.222.148.214) peterbecich
2025-11-19 22:33:40 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 22:29:07 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 22:18:40 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 22:16:33 +0100Googulator(~Googulato@2a01-036d-0106-0231-4475-80b4-5cdc-43d6.pool6.digikabel.hu) (Quit: Client closed)
2025-11-19 22:15:48 +0100Googulator16(~Googulato@85-238-67-234.pool.digikabel.hu)
2025-11-19 22:13:40 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 22:02:43 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2025-11-19 21:55:35 +0100merijn(~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn
2025-11-19 21:53:27 +0100jmcantrell(~weechat@user/jmcantrell) (Ping timeout: 252 seconds)
2025-11-19 21:43:41 +0100Googulator98Googulator