Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→
Page 1 .. 851 852 853 854 855 856 857 858 859 860 861 .. 5022
502,152 events total
2020-10-25 15:01:39 <voso534> Guest63439 even hGetLine may wait.... Try to add print as the first line of your function
2020-10-25 15:01:44 <merijn> Guest63439: What are you calling it with, though?
2020-10-25 15:02:00 <merijn> Guest63439: Because if the first call to "talk" gets an empty MVar it will block and stay empty forever
2020-10-25 15:02:42 <fendor> asheshambasta, like, for a single ghc version, you can't switch the version of base that it uses, right? You will get a similar error message with cabal. Maybe it is the same for ghcjs, you can't change the reflex version for your ghcjs, but some dependency needs another reflex version.
2020-10-25 15:03:17 <fendor> in that sense, every ghc version comes with a base version pre-installed in its packagedb that can not be changed.
2020-10-25 15:03:33 <voso534> Guest63439 I mean something like
2020-10-25 15:03:36 <voso534> ```
2020-10-25 15:03:52 <Guest63439> yep if i add a print at the top of the function i can see it every time i should
2020-10-25 15:03:58 <voso534> heck... how to write multiline here? )
2020-10-25 15:04:00 <Guest63439> the MVar should never be empty
2020-10-25 15:04:07 × dbmikus quits (~dbmikus@cpe-76-167-86-219.natsow.res.rr.com) (Ping timeout: 260 seconds)
2020-10-25 15:04:40 <asheshambasta> fendor: correct, although I'd expect there to be a way to verify that? There's nothing in the servant-reflex.cabal file that I consider suspect.
2020-10-25 15:04:45 <merijn> Guest63439: You're not calling talk (well, except recursively) in that code
2020-10-25 15:04:48 <voso534> OK, what happens with the print after hGetLine? Is it shown?
2020-10-25 15:05:03 <Guest63439> i didnt past the whole script
2020-10-25 15:05:03 × gxt quits (~gxt@gateway/tor-sasl/gxt) (Ping timeout: 240 seconds)
2020-10-25 15:05:05 <merijn> Guest63439: Without seeing how you initially call "talk" it's impossible to say
2020-10-25 15:05:38 <Guest63439> how woud you trace the let called "newState" in this function ?
2020-10-25 15:05:48 texasmynsted joins (~texasmyns@99.96.221.112)
2020-10-25 15:06:03 <asheshambasta> fendor: not to forget, going to the locally checked out servant-reflex dir., I'm able to update its reflex-platform branch/rev to the same as my project (that depends on servant-reflex), and I can successfully run `nix-shell --run 'cabal new-repl'`; which, I assume, would use the same GHC/GHCJS version?
2020-10-25 15:06:06 <merijn> @quote refreshing.desert
2020-10-25 15:06:06 <lambdabot> chromatic says: My productivity increased when Autrijus told me about Haskell's trace function. He called it a refreshing desert in the oasis of referential transparency.
2020-10-25 15:06:10 <merijn> Guest63439: ^^
2020-10-25 15:06:30 <merijn> See the Debug.Trace module
2020-10-25 15:06:45 <voso534> you can wrap newState everywhere where do you like - right hand of let for example. If it's evaluating then it will be shown on the console
2020-10-25 15:06:45 × toorevitimirp quits (~tooreviti@117.182.180.36) (Ping timeout: 260 seconds)
2020-10-25 15:07:04 <fendor> asheshambasta, hm, if my theory holds, then it is only coincidentally a dependency problem with servant-reflex. You can try to remove that dependency and see if it finds a build-plan.
2020-10-25 15:07:05 × Tario quits (~Tario@201.192.165.173) (Read error: Connection reset by peer)
2020-10-25 15:07:05 × texasmynsted quits (~texasmyns@99.96.221.112) (Read error: Connection reset by peer)
2020-10-25 15:07:13 Tario joins (~Tario@201.192.165.173)
2020-10-25 15:07:20 Gurkenglas_ is now known as Gurkenglas
2020-10-25 15:07:34 <asheshambasta> If I remove servant-reflex as a dependency, things build.
2020-10-25 15:07:46 <voso534> but I think if you will add all those `print`s (after each line), then you will see that the code is blocked somewhere - it's my hypotheses
2020-10-25 15:08:07 <asheshambasta> I didn't even know what cabal meant with .../installed-...
2020-10-25 15:08:07 thir joins (~thir@p200300f27f2523003c23ef77843b8858.dip0.t-ipconnect.de)
2020-10-25 15:08:09 texasmynsted joins (~texasmyns@99.96.221.112)
2020-10-25 15:08:50 <fendor> oh well, if that works, I don't know then :(
2020-10-25 15:09:02 × acidjnk_new quits (~acidjnk@p200300d0c7237871e8350cff71fba532.dip0.t-ipconnect.de) (Ping timeout: 260 seconds)
2020-10-25 15:09:32 <Guest63439> voso534 i tried and i can see that the code is executing from the start to the end, i think i dont understand how trace is supposed to be used inside a "do" statement
2020-10-25 15:10:11 × thir quits (~thir@p200300f27f2523003c23ef77843b8858.dip0.t-ipconnect.de) (Read error: Connection reset by peer)
2020-10-25 15:10:19 <asheshambasta> to me it seems like bulmex and servant-reflex cannot agree on the reflex version; and the message with .../installed is a complete mystery to me; and I find no signs of version bounds on reflex in either bulmex nor in servant-reflex.
2020-10-25 15:10:22 thir joins (~thir@p200300f27f2523003c23ef77843b8858.dip0.t-ipconnect.de)
2020-10-25 15:10:41 <asheshambasta> (both are overriden packages in my reflex `project`)
2020-10-25 15:11:01 × texasmynsted quits (~texasmyns@99.96.221.112) (Remote host closed the connection)
2020-10-25 15:12:11 jamm_ joins (~jamm@unaffiliated/jamm)
2020-10-25 15:12:18 × jamm_ quits (~jamm@unaffiliated/jamm) (Remote host closed the connection)
2020-10-25 15:13:19 <fendor> asheshambasta, what reflex version does your project have when you do not depend on servant-reflex?
2020-10-25 15:13:45 <voso534> Guest63439 hm... another idea is to declare strict variable with `let`, something like `let !newState = traceShow result (fst result)`
2020-10-25 15:14:14 texasmynsted joins (~texasmyns@99.96.221.112)
2020-10-25 15:15:03 <asheshambasta> fendor: I believe that's decided by the pinned reflex-platform version no? If so, I'm using https://gist.github.com/asheshambasta/423fd27b04c37e2a8f14bf84068f139a#file-sources-json-L50-L61
2020-10-25 15:15:06 vacm joins (~vacwm@70.23.92.191)
2020-10-25 15:15:32 <fendor> I have no idea about the reflex-platform, unfortunately
2020-10-25 15:15:45 × yogani quits (sid42623@gateway/web/irccloud.com/x-dpwtitcwhdgbddrx) (Ping timeout: 240 seconds)
2020-10-25 15:15:47 <Guest63439> voso534 here : https://pastebin.com/he2cch9e still printing nothing :/
2020-10-25 15:16:24 × billstclair quits (sid77830@gateway/web/irccloud.com/x-nmvjsnbrwyhkhvex) (Read error: Connection reset by peer)
2020-10-25 15:16:29 yogani joins (sid42623@gateway/web/irccloud.com/x-nfoqjqvejaeqgmoi)
2020-10-25 15:16:34 billstclair joins (sid77830@gateway/web/irccloud.com/x-clhgkncritrdqqzs)
2020-10-25 15:16:40 <asheshambasta> fendor: AFAICS, it is a curated set of packages within nix (further curation, yay!))
2020-10-25 15:17:09 × uhrenmacher quits (~uhrenmach@p200300ef8f21c8001a187fce0098c091.dip0.t-ipconnect.de) (Remote host closed the connection)
2020-10-25 15:18:27 <voso534> Guest63439 1) do you see "test2" in the console? 2) more correct is IMHO to use trace/traceShow with the value which is used actually, `x` is not used, so maybe it's not evaluated at all. Better use trace/traceShow directly in the declaration of the newState
2020-10-25 15:19:28 <Guest63439> voso534 do see test2, i will try to use it in newState declaration
2020-10-25 15:21:11 <asheshambasta> fendor: anyway, thanks for helping. I think I understand cabal less and less as time goes on. :-)
2020-10-25 15:21:41 <fendor> not sure this is cabal's fault, though :/
2020-10-25 15:21:56 <fendor> the concept of pre-installed libraries is a bit hard to grasp, imo
2020-10-25 15:22:00 byte[]1 joins (~byte]@185.163.110.116)
2020-10-25 15:22:37 Peter_Storm joins (uid288816@gateway/web/irccloud.com/x-gkmprezcyzjwjcxm)
2020-10-25 15:23:39 <asheshambasta> yeah agreed, I think nix also makes this harder to understand.
2020-10-25 15:25:41 <Guest63439> ok i got something, thanks voso534... i guess newState is never executed, by calling trace inside the answer declaration it works
2020-10-25 15:26:03 × p-core quits (~Thunderbi@2001:718:1e03:5128:2ab7:7f35:48a1:8515) (Remote host closed the connection)
2020-10-25 15:26:18 × servo quits (~servo@196.89.23.98) (Ping timeout: 256 seconds)
2020-10-25 15:28:24 <voso534> Guest63439 (y) if something is not used in Haskell, it's not evaluated ("executed")
2020-10-25 15:30:05 × steve_ quits (~quassel@ool-18b99d28.dyn.optonline.net) (Ping timeout: 265 seconds)
2020-10-25 15:30:49 × bitmapper quits (uid464869@gateway/web/irccloud.com/x-qblnjbdvopnophrh) (Quit: Connection closed for inactivity)
2020-10-25 15:31:58 × jathan quits (~jathan@69.61.93.38) (Quit: WeeChat 2.3)
2020-10-25 15:32:23 × invaser quits (~Thunderbi@31.148.23.125) (Ping timeout: 260 seconds)
2020-10-25 15:33:01 acidjnk_new joins (~acidjnk@p200300d0c7237871c499888f57928047.dip0.t-ipconnect.de)
2020-10-25 15:33:03 Kaiepi joins (~Kaiepi@nwcsnbsc03w-47-55-225-82.dhcp-dynamic.fibreop.nb.bellaliant.net)
2020-10-25 15:33:51 bitmagie joins (~Thunderbi@200116b806e0ec008c2e48c416af9de6.dip.versatel-1u1.de)
2020-10-25 15:39:17 constR joins (uid58205@gateway/web/irccloud.com/x-swuvhskpjfivpcxk)
2020-10-25 15:40:27 ClaudiusMaximus joins (~claude@198.123.199.146.dyn.plus.net)
2020-10-25 15:40:27 × ClaudiusMaximus quits (~claude@198.123.199.146.dyn.plus.net) (Changing host)
2020-10-25 15:40:27 ClaudiusMaximus joins (~claude@unaffiliated/claudiusmaximus)
2020-10-25 15:41:18 × nbloomf quits (~nbloomf@2600:1700:ad14:3020:e9e0:8366:ee4d:bc13) (Quit: My MacBook has gone to sleep. ZZZzzz…)
2020-10-25 15:42:22 × GyroW quits (~GyroW@unaffiliated/gyrow) (Quit: Someone ate my pie)
2020-10-25 15:42:39 GyroW joins (~GyroW@ptr-48ujrfd1ztq5fjywfw3.18120a2.ip6.access.telenet.be)
2020-10-25 15:42:40 × GyroW quits (~GyroW@ptr-48ujrfd1ztq5fjywfw3.18120a2.ip6.access.telenet.be) (Changing host)
2020-10-25 15:42:40 GyroW joins (~GyroW@unaffiliated/gyrow)
2020-10-25 15:43:15 invaser joins (~Thunderbi@31.148.23.125)
2020-10-25 15:45:55 × acidjnk_new quits (~acidjnk@p200300d0c7237871c499888f57928047.dip0.t-ipconnect.de) (Ping timeout: 240 seconds)
2020-10-25 15:48:23 nbloomf joins (~nbloomf@2600:1700:ad14:3020:e9e0:8366:ee4d:bc13)
2020-10-25 15:50:44 × texasmynsted quits (~texasmyns@99.96.221.112) (Remote host closed the connection)
2020-10-25 15:54:01 × thir quits (~thir@p200300f27f2523003c23ef77843b8858.dip0.t-ipconnect.de) (Remote host closed the connection)
2020-10-25 15:56:13 × Zetagon quits (~leo@c151-177-52-233.bredband.comhem.se) (Ping timeout: 246 seconds)
2020-10-25 15:59:22 × seanvert` quits (~user@177.84.244.242) (Remote host closed the connection)
2020-10-25 15:59:44 bliminse joins (~bliminse@host109-158-26-29.range109-158.btcentralplus.com)
2020-10-25 15:59:49 seanvert` joins (~user@177.84.244.242)
2020-10-25 16:01:14 × christo quits (~chris@81.96.113.213) (Remote host closed the connection)
2020-10-25 16:02:08 <emmanuel_erc> monsterchrom: Unfortunately, I couldn't put this coworker on the ignore list before. But I probably won't be working with them for much longer (and they're a PM to boot)
2020-10-25 16:02:45 × kish quits (~oracle@unaffiliated/oracle) (Ping timeout: 240 seconds)
2020-10-25 16:04:08 Rudd0 joins (~Rudd0@185.189.115.98)

All times are in UTC.