Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-04-29 11:51:19 son0p joins (~ff@181.136.122.143)
2021-04-29 11:51:33 × is_null_ quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 265 seconds)
2021-04-29 11:51:34 × egorbelibov quits (~65676f72@2001:8a0:5708:2a00:2014:4cc0:2f98:ce70) (Remote host closed the connection)
2021-04-29 11:53:06 × is_null quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 240 seconds)
2021-04-29 11:53:23 is_null joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 11:55:35 Guest31772 joins (~mattl@185.204.1.185)
2021-04-29 11:59:30 ddellacosta joins (ddellacost@gateway/vpn/mullvad/ddellacosta)
2021-04-29 12:00:29 Alleria joins (~textual@zrcout.mskcc.org)
2021-04-29 12:00:51 Alleria is now known as Guest23245
2021-04-29 12:03:52 × ddellacosta quits (ddellacost@gateway/vpn/mullvad/ddellacosta) (Ping timeout: 240 seconds)
2021-04-29 12:04:02 royal_screwup21 joins (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9)
2021-04-29 12:09:29 <nshepperd> do they don't have to remember to do that later
2021-04-29 12:10:00 <nitrix> Expectations tends to lead to surprises.
2021-04-29 12:10:23 × enobayram quits (4eaf3ebd@78.175.62.189) (Quit: Connection closed)
2021-04-29 12:10:43 machinedgod joins (~machinedg@135-23-192-217.cpe.pppoe.ca)
2021-04-29 12:14:16 × geowiesnot quits (~user@87-89-181-157.abo.bbox.fr) (Ping timeout: 265 seconds)
2021-04-29 12:15:34 × stree quits (~stree@68.36.8.116) (Ping timeout: 260 seconds)
2021-04-29 12:15:38 ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-04-29 12:17:25 heatsink joins (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net)
2021-04-29 12:17:46 geowiesnot joins (~user@87-89-181-157.abo.bbox.fr)
2021-04-29 12:21:22 gehmehgeh joins (~ircuser1@gateway/tor-sasl/gehmehgeh)
2021-04-29 12:21:53 × heatsink quits (~heatsink@108-201-191-115.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 252 seconds)
2021-04-29 12:22:23 × bennofs_ quits (~quassel@x4dbf4f4d.dyn.telefonica.de) (Read error: Connection reset by peer)
2021-04-29 12:22:38 bennofs_ joins (~quassel@x4dbf4f4d.dyn.telefonica.de)
2021-04-29 12:25:16 × Qwerky_ quits (~qwerky@37.170.132.154) (Remote host closed the connection)
2021-04-29 12:27:02 × royal_screwup21 quits (52254809@gateway/web/cgi-irc/kiwiirc.com/ip.82.37.72.9) (Quit: Connection closed)
2021-04-29 12:27:19 timCF joins (~i.tkachuk@200-149-20-81.sta.estpak.ee)
2021-04-29 12:28:36 stree joins (~stree@68.36.8.116)
2021-04-29 12:28:49 teme joins (56733f9f@dsl-hkibng42-56733f-159.dhcp.inet.fi)
2021-04-29 12:30:00 Qwerky joins (~qwerky@37.170.132.154)
2021-04-29 12:30:12 zebrag joins (~inkbottle@aaubervilliers-654-1-79-166.w86-212.abo.wanadoo.fr)
2021-04-29 12:30:30 × ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 260 seconds)
2021-04-29 12:30:33 <timCF> Hello! I'm using `KatipContextT` transformer for stuctural logging of my app, and it works quite well. But unfortunately part of my app which is using Esqueleto/Persistent libraries has its own opinion about logging and uses `LoggingT` under the hood. Is there any smart way to map `LoggingT` into `KatipContextT` to make all my logs looking the same way?
2021-04-29 12:31:14 ddellacosta joins (~ddellacos@86.106.143.177)
2021-04-29 12:32:17 × ukari quits (~ukari@unaffiliated/ukari) (Remote host closed the connection)
2021-04-29 12:32:44 nineonine joins (~nineonine@2604:3d08:7785:9600:b972:f5c7:dd8f:5421)
2021-04-29 12:32:57 <merijn> timCF: Yes
2021-04-29 12:33:09 <merijn> LoggingT is just a function you can replac
2021-04-29 12:33:22 ukari joins (~ukari@unaffiliated/ukari)
2021-04-29 12:33:41 <merijn> timCF: https://hackage.haskell.org/package/monad-logger-0.3.36/docs/Control-Monad-Logger.html#t:LoggingT
2021-04-29 12:35:42 × ddellacosta quits (~ddellacos@86.106.143.177) (Ping timeout: 260 seconds)
2021-04-29 12:35:42 × xelxebar_ quits (~xelxebar@gateway/tor-sasl/xelxebar) (Remote host closed the connection)
2021-04-29 12:35:59 × teme quits (56733f9f@dsl-hkibng42-56733f-159.dhcp.inet.fi) (Quit: Connection closed)
2021-04-29 12:36:11 xelxebar joins (~xelxebar@gateway/tor-sasl/xelxebar)
2021-04-29 12:37:02 <timCF> merijn: It's now really clear how, because this function don't have any side-effect rich arguments which can define how exactly it should do logging
2021-04-29 12:37:12 × nemesit|znc_ quits (~nemesit@2a01:488:66:1000:2ea3:4eeb:0:1) (Quit: ZNC 1.6.3+deb1ubuntu0.2 - http://znc.in)
2021-04-29 12:37:19 <timCF> In my case I'm using this function from Persistent https://hackage.haskell.org/package/persistent-postgresql-2.12.1.1/docs/Database-Persist-Postgresql.html#v:createPostgresqlPool
2021-04-29 12:37:19 × nineonine quits (~nineonine@2604:3d08:7785:9600:b972:f5c7:dd8f:5421) (Ping timeout: 250 seconds)
2021-04-29 12:37:42 nemesit|znc joins (~nemesit@myriadvisuals.com)
2021-04-29 12:38:17 <timCF> It has class restriction `MonadLoggerIO m` and value can be passed to `runStdoutLoggingT`
2021-04-29 12:39:16 × Qwerky quits (~qwerky@37.170.132.154) (Remote host closed the connection)
2021-04-29 12:39:18 frozenErebus joins (~frozenEre@37.231.244.249)
2021-04-29 12:39:37 Qwerky joins (~qwerky@37.170.132.154)
2021-04-29 12:39:37 <timCF> And I don't undestand how to map output of `createPostresqlPool` into something what `runKatipContextT` will understand
2021-04-29 12:40:07 <timCF> To use it instead of `runStdoutLoggingT`
2021-04-29 12:45:11 × __monty__ quits (~toonn@unaffiliated/toonn) (Quit: leaving)
2021-04-29 12:45:15 × idhugo__ quits (~idhugo@80-62-116-231-mobile.dk.customer.tdc.net) (Remote host closed the connection)
2021-04-29 12:45:42 idhugo__ joins (~idhugo@80-62-116-231-mobile.dk.customer.tdc.net)
2021-04-29 12:46:47 × is_null quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 260 seconds)
2021-04-29 12:47:12 <merijn> I recall overriding it for my own logging
2021-04-29 12:47:22 <merijn> but, tbh, I don't remember how
2021-04-29 12:47:44 <merijn> and I can't quickly find the relevant code
2021-04-29 12:48:41 is_null joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 12:50:07 × vgtw quits (~vgtw@gateway/tor-sasl/vgtw) (Remote host closed the connection)
2021-04-29 12:50:16 geekosaur joins (930099da@rrcs-147-0-153-218.central.biz.rr.com)
2021-04-29 12:50:21 vgtw joins (~vgtw@gateway/tor-sasl/vgtw)
2021-04-29 12:50:31 × zva quits (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de) (Ping timeout: 265 seconds)
2021-04-29 12:52:54 ddellacosta joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-04-29 12:54:50 × ddellacosta quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Remote host closed the connection)
2021-04-29 12:55:49 ddellaco_ joins (~ddellacos@ool-44c73afa.dyn.optonline.net)
2021-04-29 12:55:57 × acidjnk_new2 quits (~acidjnk@p200300d0c72b9548b4aacef2f046ba0b.dip0.t-ipconnect.de) (Ping timeout: 250 seconds)
2021-04-29 12:56:11 Tario joins (~Tario@201.192.165.173)
2021-04-29 12:56:26 jgt joins (~jgt@88.225.221.135)
2021-04-29 12:58:03 × jgt_ quits (~jgt@46.154.73.47) (Remote host closed the connection)
2021-04-29 12:59:11 × zebrag quits (~inkbottle@aaubervilliers-654-1-79-166.w86-212.abo.wanadoo.fr) (Quit: Konversation terminated!)
2021-04-29 12:59:31 zebrag joins (~inkbottle@aaubervilliers-654-1-79-166.w86-212.abo.wanadoo.fr)
2021-04-29 12:59:37 × idhugo__ quits (~idhugo@80-62-116-231-mobile.dk.customer.tdc.net) (Ping timeout: 252 seconds)
2021-04-29 12:59:51 × ddellaco_ quits (~ddellacos@ool-44c73afa.dyn.optonline.net) (Ping timeout: 246 seconds)
2021-04-29 13:00:39 nicholasbulka joins (~nicholasb@2601:900:4301:da0:f09e:8831:6f30:999f)
2021-04-29 13:02:01 carlomagno joins (~cararell@148.87.23.6)
2021-04-29 13:03:02 slack1256 joins (~slack1256@181.203.33.200)
2021-04-29 13:03:50 × cfricke quits (~cfricke@unaffiliated/cfricke) (Quit: WeeChat 3.1)
2021-04-29 13:05:11 urodna joins (~urodna@unaffiliated/urodna)
2021-04-29 13:05:40 ddellacosta joins (~ddellacos@86.106.143.47)
2021-04-29 13:05:53 × __minoru__shirae quits (~shiraeesh@46.34.207.120) (Ping timeout: 252 seconds)
2021-04-29 13:06:10 × nicholasbulka quits (~nicholasb@2601:900:4301:da0:f09e:8831:6f30:999f) (Remote host closed the connection)
2021-04-29 13:06:22 hyperisco joins (~hyperisco@d192-186-117-226.static.comm.cgocable.net)
2021-04-29 13:06:25 nicholasbulka joins (~nicholasb@2601:900:4301:da0:f09e:8831:6f30:999f)
2021-04-29 13:08:22 zva joins (~zava@ip5f5bdf0f.dynamic.kabel-deutschland.de)
2021-04-29 13:08:56 × frozenErebus quits (~frozenEre@37.231.244.249) (Ping timeout: 260 seconds)
2021-04-29 13:09:41 is_null_ joins (~jpic@pdpc/supporter/professional/is-null)
2021-04-29 13:10:06 × ddellacosta quits (~ddellacos@86.106.143.47) (Ping timeout: 240 seconds)
2021-04-29 13:11:47 <timCF> merijn: thanks anyway!
2021-04-29 13:13:41 × is_null quits (~jpic@pdpc/supporter/professional/is-null) (Ping timeout: 240 seconds)
2021-04-29 13:14:46 × nut quits (~gtk@roc37-h01-176-170-197-243.dsl.sta.abo.bbox.fr) (Ping timeout: 240 seconds)
2021-04-29 13:15:26 lleb joins (5c91ba7e@amarseille-158-1-23-126.w92-145.abo.wanadoo.fr)
2021-04-29 13:17:34 <lleb> hello o/ i have a beginner question : i'm trying to send a post http request, with a json body. To add the body request, im using Http.Network.Simple setRequestBodyJSON : https://hackage.haskell.org/package/http-conduit-2.3.8/docs/Network-HTTP-Simple.html#v:setRequestBodyJSON
2021-04-29 13:17:35 <lleb> But it seems that the request i send it invalid, the server answer me with a 400. setRequestBodyJSON document talk about a flag aeson that should be enabled. I looked at the aeson hackage page, and it seems that aeson expose multiple flags. I tried all of them but it didnt fix my issue. I wonder if im doing it correctly
2021-04-29 13:18:17 <lleb> i added this to my stack.yaml file :
2021-04-29 13:18:18 <lleb> 2 flags:

All times are in UTC.