Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 288 289 290 291 292 293 294 295 296 297 298 .. 5022
502,152 events total
2020-09-29 09:28:22 yoneda joins (~mike@193.206.102.122)
2020-09-29 09:28:25 × Tops2 quits (~Tobias@dyndsl-091-249-082-222.ewe-ip-backbone.de) (Read error: Connection reset by peer)
2020-09-29 09:28:59 × josh_ quits (~josh@c-67-164-104-206.hsd1.ca.comcast.net) (Ping timeout: 240 seconds)
2020-09-29 09:29:04 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 256 seconds)
2020-09-29 09:29:49 × jhuizy quits (~jhuizy@static.241.188.216.95.clients.your-server.de) (Quit: Ping timeout (120 seconds))
2020-09-29 09:29:57 hackage cabal-cache 1.0.2.0 - CI Assistant for Haskell projects https://hackage.haskell.org/package/cabal-cache-1.0.2.0 (haskellworks)
2020-09-29 09:30:43 × karolus quits (~karolus@static.32.230.217.95.clients.your-server.de) (Quit: karolus says ciao)
2020-09-29 09:30:56 jhuizy joins (~jhuizy@static.241.188.216.95.clients.your-server.de)
2020-09-29 09:31:03 karolus joins (~karolus@static.32.230.217.95.clients.your-server.de)
2020-09-29 09:32:19 mirrorbird joins (~psutcliff@h85-8-41-6.cust.a3fiber.se)
2020-09-29 09:33:55 <AWizzArd> dminuoso: in Servant I had to do this, yes, and wrap the result of runReader in a Handler: Handler $ runReaderT (runApp appt) context
2020-09-29 09:34:22 <AWizzArd> dminuoso: but the game was not over yet: I also had to `hoistServer` it.
2020-09-29 09:34:37 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 09:37:40 aplainzetakind joins (~johndoe@captainludd.powered.by.lunarbnc.net)
2020-09-29 09:38:13 <maerwald> lol
2020-09-29 09:38:18 × zacts quits (~zacts@dragora/developer/zacts) (Quit: leaving)
2020-09-29 09:38:40 <maerwald> runSomeThing . unwrapSomething . hoistMe . unliftMe . liftOther
2020-09-29 09:38:43 <maerwald> such functional
2020-09-29 09:39:07 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2020-09-29 09:39:26 <maerwald> justMakeTheDamnThingTypecheck
2020-09-29 09:39:44 <AWizzArd> maerwald: yeah.
2020-09-29 09:40:06 <AWizzArd> maerwald: so Snap is more "manual". That’s one difference.
2020-09-29 09:41:15 <AWizzArd> maerwald: in Servant I say that I get a json body and I want Servant to parse it into a SendEmailRequest value. Not much to do, it now is a parameter, I won’t have to call Aeson or read anything from a request.
2020-09-29 09:43:06 <AWizzArd> maerwald: also I start my handler with myHandler = readRequestBody (1024*30) >>= (\body -> ...)
2020-09-29 09:43:26 <hc> actually, you never tell servant what you want it to do. you just declare what you are expecting to handle ;-)
2020-09-29 09:43:27 <AWizzArd> maerwald: is that the typical strategy? Or is there some "readAll"?
2020-09-29 09:43:34 <AWizzArd> hc: si
2020-09-29 09:44:14 <AWizzArd> hc: I find Servant also useful when I NOT want to generate JS clients from the API. This declarative nature is nice.
2020-09-29 09:44:50 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 09:44:55 <hc> true :)
2020-09-29 09:44:58 <AWizzArd> hc: but then again Servant gives me parameters as Maybes. Is there a way to specify: „Hey, call this handler only in case that *all* of them are Justified”?
2020-09-29 09:45:00 × hololeap quits (~hololeap@unaffiliated/hololeap) (Ping timeout: 256 seconds)
2020-09-29 09:45:10 <AWizzArd> Justified = non-Nothing
2020-09-29 09:45:36 <AWizzArd> (If you wrap something in a Just then you just Justified it)
2020-09-29 09:45:52 <maerwald> AWizzArd: I personally find all that little gain for the increased cognitive noise
2020-09-29 09:46:31 <AWizzArd> maerwald: I will be using Snap in that service now. It seems to be a bit simpler, yet more manual.
2020-09-29 09:47:28 <AWizzArd> maerwald: So how do you work with a Post request that contains a json body? body <- readRequestBody (1024*30); case eitherDecode body of ... ? Like that?
2020-09-29 09:48:00 <maerwald> I don't recall :D
2020-09-29 09:48:20 × dhil quits (~dhil@11.29.39.217.dyn.plus.net) (Ping timeout: 272 seconds)
2020-09-29 09:48:49 <AWizzArd> Btw: Aeson – what is the difference between a) eitherDecode and b) eitherDecode' ?
2020-09-29 09:49:05 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2020-09-29 09:49:42 <hc> hmm, strict vs nonstrict? lemme check the docs
2020-09-29 09:50:09 <hc> ah no, one fails and the other returns an error on parse problems
2020-09-29 09:50:12 <dminuoso> strictness in conversion checking
2020-09-29 09:50:24 <hc> ah true
2020-09-29 09:50:25 <dminuoso> decode' strictly performs conversion, decode is lazy
2020-09-29 09:50:45 <hc> no wait! yes, it is about lazy/strictness after all :)
2020-09-29 09:50:52 <dminuoso> See https://hackage.haskell.org/package/aeson-1.5.4.0/docs/Data-Aeson.html#v:json
2020-09-29 09:50:55 <dminuoso> (And below)
2020-09-29 09:51:26 <hc> ah cool. both functions parse immediately so cannot lazily fail later
2020-09-29 09:51:29 <AWizzArd> And then eitherDecodeStrict vs eitherDecodeStrict'
2020-09-29 09:52:00 <AWizzArd> dminuoso: seems that’s it, json vs json'
2020-09-29 09:54:50 resolve joins (~resolve@84.39.116.180)
2020-09-29 09:54:52 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 09:59:48 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 260 seconds)
2020-09-29 10:00:02 tbreslein joins (~tbreslein@2a02:8108:140:44f8::901)
2020-09-29 10:01:15 Ariakenom_ joins (~Ariakenom@h-178-174-193-185.NA.cust.bahnhof.se)
2020-09-29 10:02:52 × jgt quits (~jgt@46.250.27.223.pool.breezein.net) (Ping timeout: 246 seconds)
2020-09-29 10:04:37 × Ariakenom quits (~Ariakenom@h-98-128-229-34.NA.cust.bahnhof.se) (Ping timeout: 246 seconds)
2020-09-29 10:05:02 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 10:05:42 jgt joins (~jgt@46.250.27.223.pool.breezein.net)
2020-09-29 10:05:47 × borne quits (~fritjof@200116b864231000537d5cc8226f9d9f.dip.versatel-1u1.de) (Ping timeout: 240 seconds)
2020-09-29 10:06:59 × jespada quits (~jespada@90.254.241.6) (Quit: Leaving)
2020-09-29 10:07:23 × Orbstheorem quits (~roosember@hellendaal.orbstheorem.ch) (Ping timeout: 260 seconds)
2020-09-29 10:07:57 Gurkenglas joins (~Gurkengla@unaffiliated/gurkenglas)
2020-09-29 10:09:09 jespada joins (~jespada@90.254.241.6)
2020-09-29 10:09:41 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 258 seconds)
2020-09-29 10:11:12 Orbstheorem joins (~roosember@hellendaal.orbstheorem.ch)
2020-09-29 10:14:08 filwishe1 joins (~filwisher@cpc76738-dals23-2-0-cust186.20-2.cable.virginm.net)
2020-09-29 10:14:24 × dddddd quits (~dddddd@unaffiliated/dddddd) (Ping timeout: 256 seconds)
2020-09-29 10:14:29 × jespada quits (~jespada@90.254.241.6) (Quit: Leaving)
2020-09-29 10:15:10 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 10:15:11 jespada joins (~jespada@90.254.241.6)
2020-09-29 10:15:52 × Orbstheorem quits (~roosember@hellendaal.orbstheorem.ch) (Ping timeout: 260 seconds)
2020-09-29 10:16:18 × jespada quits (~jespada@90.254.241.6) (Client Quit)
2020-09-29 10:16:56 × mirrorbird quits (~psutcliff@h85-8-41-6.cust.a3fiber.se) (Remote host closed the connection)
2020-09-29 10:17:11 dhil joins (~dhil@11.29.39.217.dyn.plus.net)
2020-09-29 10:17:21 mirrorbird joins (~psutcliff@h85-8-41-6.cust.a3fiber.se)
2020-09-29 10:19:43 jespada joins (~jespada@90.254.241.6)
2020-09-29 10:19:49 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 265 seconds)
2020-09-29 10:20:33 Neuromancer joins (~Neuromanc@unaffiliated/neuromancer)
2020-09-29 10:25:16 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 10:26:31 sz0 joins (uid110435@gateway/web/irccloud.com/x-roomdfrsyecwcjsl)
2020-09-29 10:29:16 notzmv` is now known as notzmv
2020-09-29 10:29:23 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 240 seconds)
2020-09-29 10:29:27 × notzmv quits (~user@179.100.115.46) (Changing host)
2020-09-29 10:29:27 notzmv joins (~user@unaffiliated/zmv)
2020-09-29 10:29:45 dddddd joins (~dddddd@unaffiliated/dddddd)
2020-09-29 10:30:16 Amras joins (~Amras@unaffiliated/amras0000)
2020-09-29 10:31:05 × mirrorbird quits (~psutcliff@h85-8-41-6.cust.a3fiber.se) (Read error: Connection reset by peer)
2020-09-29 10:31:21 mirrorbird joins (~psutcliff@h85-8-41-6.cust.a3fiber.se)
2020-09-29 10:31:58 hackage th-abstraction 0.4.0.0 - Nicer interface for reified information about data types https://hackage.haskell.org/package/th-abstraction-0.4.0.0 (ryanglscott)
2020-09-29 10:35:23 × kuribas quits (~user@ptr-25vy0i7prrvbu6qbdzj.18120a2.ip6.access.telenet.be) (Read error: Connection reset by peer)
2020-09-29 10:35:25 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)
2020-09-29 10:35:50 kuribas joins (~user@ptr-25vy0i90m4i4hv80b70.18120a2.ip6.access.telenet.be)
2020-09-29 10:40:16 × heatsink quits (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net) (Ping timeout: 272 seconds)
2020-09-29 10:41:30 × mnrmnaugh quits (~mnrmnaugh@unaffiliated/mnrmnaugh) (Ping timeout: 244 seconds)
2020-09-29 10:43:39 mnrmnaugh joins (~mnrmnaugh@unaffiliated/mnrmnaugh)
2020-09-29 10:45:15 Ariakenom__ joins (~Ariakenom@h-178-174-193-185.NA.cust.bahnhof.se)
2020-09-29 10:45:34 heatsink joins (~heatsink@107-136-5-69.lightspeed.sntcca.sbcglobal.net)

All times are in UTC.