Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 858 859 860 861 862 863 864 865 866 867 868 .. 5022
502,152 events total
2020-10-25 22:54:46 × GyroW quits (~GyroW@unaffiliated/gyrow) (Quit: Someone ate my pie)
2020-10-25 22:55:00 <dolio> Hahaha.
2020-10-25 22:55:05 GyroW joins (~GyroW@ptr-48ujrfd1ztq5fjywfw3.18120a2.ip6.access.telenet.be)
2020-10-25 22:55:05 × GyroW quits (~GyroW@ptr-48ujrfd1ztq5fjywfw3.18120a2.ip6.access.telenet.be) (Changing host)
2020-10-25 22:55:05 GyroW joins (~GyroW@unaffiliated/gyrow)
2020-10-25 22:55:29 <dolio> _deepfire: No, it's not possible.
2020-10-25 22:56:06 <dolio> Unboxed tuples aren't just unlifted, they don't have a uniform calling convention, so it doesn't really make any sense.
2020-10-25 22:56:19 <monsterchrom> It is in a section that uses "L a = a x (unit -> L)" to implement lazy lists.
2020-10-25 22:57:00 hyiltiz joins (~quassel@82.118.227.47)
2020-10-25 22:57:00 × hyiltiz quits (~quassel@82.118.227.47) (Changing host)
2020-10-25 22:57:00 hyiltiz joins (~quassel@unaffiliated/hyiltiz)
2020-10-25 22:57:16 <motte> hi, could anyone explain how to exception handling with the req http library?
2020-10-25 22:57:27 <motte> to do*
2020-10-25 22:57:51 <dolio> Are they actually lazy, though?
2020-10-25 22:57:56 <_deepfire> dolio: I see, thank you!
2020-10-25 22:58:03 <koz_> motte: I guess you want this? http://hackage.haskell.org/package/req-3.7.0/docs/Network-HTTP-Req.html#v:handleHttpException
2020-10-25 22:58:12 <motte> the documentation suggests to create my own monad and then define the handleHttpException method, but i'm not sure what that really means
2020-10-25 22:58:23 <dolio> Or just call-by-name?
2020-10-25 22:58:23 <motte> koz_: yes!
2020-10-25 22:58:37 × knupfer quits (~Thunderbi@200116b82c71d20075517a899185d8fc.dip.versatel-1u1.de) (Ping timeout: 260 seconds)
2020-10-25 22:58:56 <koz_> motte: If you don't need anything 'extra', you can just work in 'Req'.
2020-10-25 22:59:10 <koz_> If you don't understand what 'anything extra' means, basically use 'Req'.
2020-10-25 22:59:17 crestfallen joins (~John@135-180-15-188.fiber.dynamic.sonic.net)
2020-10-25 22:59:28 <koz_> So everywhere you see 'MonadHttp m', mentally sub 'm' for 'Req' in the signatures.
2020-10-25 23:00:22 <motte> oh.. so can i "override" the handleHttpException somehow?
2020-10-25 23:00:50 <koz_> motte: I guess the term 'monad transformer' is new to you?
2020-10-25 23:00:53 × apoc quits (~apoc@bridge.mattzq.com) (Ping timeout: 260 seconds)
2020-10-25 23:01:03 <motte> it indeed is
2020-10-25 23:01:13 <koz_> Then basically don't worry about it.
2020-10-25 23:01:16 <koz_> Just work in Req.
2020-10-25 23:01:50 × jbox quits (~atlas@unaffiliated/jbox) (Read error: Connection reset by peer)
2020-10-25 23:02:19 <crestfallen> hi I'm having trouble in ghci. I upgraded cabal to 3.2.0.0 and ghci is at 8.4.4. when I attempt to move the cursor from right to left to edit, the cursor jumps up into the scrollback, for lack of a better explanation. this is a debian 10 machine. anyone have that issue?
2020-10-25 23:02:30 <motte> i basically want to return an Either String String from a function that does a GET request, where Left would contain a status code
2020-10-25 23:02:50 jbox joins (~atlas@unaffiliated/jbox)
2020-10-25 23:03:00 <koz_> motte: So what's the closest thing you found to what you think you need?
2020-10-25 23:03:10 <motte> using catch
2020-10-25 23:03:12 <koz_> I guess there's some 'make a GET request' function?
2020-10-25 23:03:41 <motte> yes, i can make the get request, the only problem is the error handling
2020-10-25 23:03:50 <koz_> motte: OK, so you need to basically do this.
2020-10-25 23:05:22 × conal quits (~conal@198.8.81.71) (Ping timeout: 256 seconds)
2020-10-25 23:05:56 <koz_> catch thingThatMakesYourRequest handler
2020-10-25 23:06:07 <crestfallen> yeah also I'm having the exact problem on another debian 10 machine at work.
2020-10-25 23:06:15 <koz_> Where handler will be typed as 'HttpException -> Req a'.
2020-10-25 23:06:25 <koz_> Then you can take the exception apart and figure out what went wrong.
2020-10-25 23:06:29 <koz_> And then proceed accordingly.
2020-10-25 23:06:44 × fendor quits (~fendor@178.165.129.119.wireless.dyn.drei.com) (Remote host closed the connection)
2020-10-25 23:07:09 <motte> koz_: right. but the nicer way would be using a monad transformer?
2020-10-25 23:07:16 <koz_> motte: Orthogonal.
2020-10-25 23:07:19 <gattytto> I think I found why my build is failing, seems like "stack" doesn't have a "--ghc-options" arg
2020-10-25 23:07:23 <koz_> Literally don't even concern yourself with this./
2020-10-25 23:07:39 <crestfallen> almost unusable... any ideas?
2020-10-25 23:07:54 <motte> koz_: alright, thanks a lot!
2020-10-25 23:08:38 <gattytto> crestfallen: what IDE are you using?
2020-10-25 23:09:16 × wz1000 quits (~wz1000@static.11.113.47.78.clients.your-server.de) (Ping timeout: 256 seconds)
2020-10-25 23:09:51 <crestfallen> gattytto, it's just the ghci that comes with cabal, in terminal. I use vim but its unrelated
2020-10-25 23:10:03 mimi_vx joins (~mimi@2a01:490:16:1026:c3:872f:6511:b2da)
2020-10-25 23:10:44 ahmr88 joins (~ahmr88@cpc85006-haye22-2-0-cust131.17-4.cable.virginm.net)
2020-10-25 23:10:45 × hyiltiz quits (~quassel@unaffiliated/hyiltiz) (Ping timeout: 240 seconds)
2020-10-25 23:11:34 <crestfallen> the cursor jumps up and travel to the left above the prompt line.
2020-10-25 23:11:37 × LKoen quits (~LKoen@81.255.219.130) (Quit: “It’s only logical. First you learn to talk, then you learn to think. Too bad it’s not the other way round.”)
2020-10-25 23:11:40 <crestfallen> travels*
2020-10-25 23:12:22 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2020-10-25 23:12:44 hyiltiz joins (~quassel@82.118.227.47)
2020-10-25 23:12:44 × hyiltiz quits (~quassel@82.118.227.47) (Changing host)
2020-10-25 23:12:44 hyiltiz joins (~quassel@unaffiliated/hyiltiz)
2020-10-25 23:13:56 × son0p quits (~son0p@181.136.122.143) (Quit: leaving)
2020-10-25 23:13:57 hackage clckwrks 0.26.2.3 - A secure, reliable content management system (CMS) and blogging platform https://hackage.haskell.org/package/clckwrks-0.26.2.3 (JeremyShaw)
2020-10-25 23:14:57 × mimi_vx quits (~mimi@2a01:490:16:1026:c3:872f:6511:b2da) (Ping timeout: 260 seconds)
2020-10-25 23:16:36 × Jeanne-Kamikaze quits (~Jeanne-Ka@68.235.43.110) (Ping timeout: 272 seconds)
2020-10-25 23:20:53 tuple joins (~igloo@c-67-169-78-228.hsd1.ca.comcast.net)
2020-10-25 23:21:05 × tuple quits (~igloo@c-67-169-78-228.hsd1.ca.comcast.net) (Client Quit)
2020-10-25 23:21:36 <crestfallen> anyone have this issue? ^ frustrated..
2020-10-25 23:21:57 <gattytto> from what terminal are you running ghci ?
2020-10-25 23:22:04 <gattytto> bash/zsh?
2020-10-25 23:23:03 <crestfallen> bash on xTerm
2020-10-25 23:24:22 × Sheilong quits (uid293653@gateway/web/irccloud.com/x-twosczzfetktowvl) (Quit: Connection closed for inactivity)
2020-10-25 23:25:31 <gattytto> can you try without the desktop? like, CTRL+ALT+F1 and go to ghci from that shell?
2020-10-25 23:25:57 <crestfallen> gattytto, thanks, yeah I can barely use it. It loads programs fine, but you cannot travel right to left, or delete
2020-10-25 23:26:05 <crestfallen> ok one moment thanks
2020-10-25 23:27:55 texasmynsted joins (~texasmyns@99.96.221.112)
2020-10-25 23:27:55 × crestfallen quits (~John@135-180-15-188.fiber.dynamic.sonic.net) (Remote host closed the connection)
2020-10-25 23:28:06 <gattytto> ouch
2020-10-25 23:29:10 Tene joins (~tene@poipu/supporter/slacker/tene)
2020-10-25 23:30:25 × elliott_ quits (~elliott_@pool-108-51-141-12.washdc.fios.verizon.net) (Ping timeout: 240 seconds)
2020-10-25 23:31:19 × texasmynsted quits (~texasmyns@99.96.221.112) (Remote host closed the connection)
2020-10-25 23:31:20 <monsterchrom> dolio: Right, it is not the Haskell sense of lazy. It has the aspect of on-demand, but it also gets re-computed every time.
2020-10-25 23:32:46 × Deide quits (~Deide@217.155.19.23) (Quit: Seeee yaaaa)
2020-10-25 23:32:52 crestfallen joins (~John@135-180-15-188.fiber.dynamic.sonic.net)
2020-10-25 23:33:08 <dolio> Right, because it's even worse to do proper laziness. :)
2020-10-25 23:33:11 <gattytto> crestfallen: sorry I forgot to tell you, ctrl+alt+f7 will get you back to your window manager
2020-10-25 23:33:33 <dolio> Or, even harder, rather.
2020-10-25 23:37:24 Katarushisu joins (~Katarushi@cpc149712-finc20-2-0-cust535.4-2.cable.virginm.net)
2020-10-25 23:38:07 <crestfallen> gattytto, thanks, I'm in another desktop, default x10 or something? it's not gnome, my normal desktop. but the problem remains. ctrl alt f1 didn't give me a skeletal terminal or anything.
2020-10-25 23:38:24 <gattytto> try the other f's before 7
2020-10-25 23:38:28 <gattytto> like 2, 3 and 4
2020-10-25 23:39:01 <crestfallen> thanks let me start a macbook for the chat
2020-10-25 23:39:33 <jbox> I've been trying to get my dev environment to work (get hie to recognize that xmonad is, in fact, installed), and somehow I borked everything
2020-10-25 23:39:38 xerox_ joins (~xerox@unaffiliated/xerox)
2020-10-25 23:39:38 crestfal1en joins (~jvw@135-180-15-188.fiber.dynamic.sonic.net)
2020-10-25 23:39:40 <jbox> stack won't even run now

All times are in UTC.