Home liberachat/#haskell: Logs Calendar

Logs: liberachat/#haskell

←Prev  Next→
Page 1 .. 842 843 844 845 846 847 848 849 850 851 852 .. 18025
1,802,451 events total
2021-07-07 21:03:45 <veverak> the fact that nominalDiffTimeToSeconds returns `Pico` is hella confusing
2021-07-07 21:03:58 <boxscape> is there a better way to write this? either (const $ r str) Right (l str)
2021-07-07 21:04:32 <glguy> A Float is probably too imprecise to be all that useful, though
2021-07-07 21:05:25 <veverak> yeah
2021-07-07 21:08:59 gioyik joins (~gioyik@gateway/tor-sasl/gioyik)
2021-07-07 21:10:47 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 268 seconds)
2021-07-07 21:13:42 × neceve quits (~quassel@2a02:c7f:607e:d600:f762:20dd:304e:4b1f) (Ping timeout: 252 seconds)
2021-07-07 21:13:58 × maf654321 quits (~maf654321@user/maf654321) (Ping timeout: 272 seconds)
2021-07-07 21:16:00 re101-bombay-30 joins (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c)
2021-07-07 21:18:02 <AWizzArd> About Channels (i.e. Control.Concurrent.Chan): I can do a blocking `readChan` to wait until some data becomes available. But: can I also wait for multiple channels at the same time, and unblock as soon as one of them has data?
2021-07-07 21:20:15 <hpc> if you don't mind the seemingly frivolous use of threads, you can have a thread for each Chan feeding into a combined Chan that your main thread waits on
2021-07-07 21:20:28 × fizbin quits (~fizbin@c-73-33-197-160.hsd1.nj.comcast.net) (Remote host closed the connection)
2021-07-07 21:21:59 <AWizzArd> I wonder if one could add an Alternative implementation that in a way monoidically combines all chans into a single one.
2021-07-07 21:22:00 yauhsien joins (~yauhsien@61-231-39-135.dynamic-ip.hinet.net)
2021-07-07 21:22:28 jolly joins (~jolly@208.180.97.158)
2021-07-07 21:22:29 <AWizzArd> (value, chanThatReadData) <- readChan c1 <|> readChan c2 <|> readChan c3
2021-07-07 21:23:53 × eggplantade quits (~Eggplanta@2600:1700:bef1:5e10:cdb:cabc:a7c7:75c9) (Remote host closed the connection)
2021-07-07 21:24:25 <monochrom> IO's <|> doesn't do that.
2021-07-07 21:24:32 <monochrom> But STM's <|> does.
2021-07-07 21:24:48 <monochrom> A good reason to switch to TChan.
2021-07-07 21:26:24 ptr_frac7al joins (~longlong@user/ptr-frac7al/x-0038398)
2021-07-07 21:26:34 × yauhsien quits (~yauhsien@61-231-39-135.dynamic-ip.hinet.net) (Ping timeout: 258 seconds)
2021-07-07 21:28:04 drd joins (~drd@93-39-151-19.ip76.fastwebnet.it)
2021-07-07 21:28:10 Erutuon joins (~Erutuon@user/erutuon)
2021-07-07 21:28:11 <monochrom> BTW most of the complaints against Haskell's time package are only because people mistake "used to the C unix way" for "the C unix way is right".
2021-07-07 21:28:25 <monochrom> No, Haskell's time package is the one that does it right.
2021-07-07 21:28:52 <maerwald> I don't even know what time is... and computers can freely navigate into future and past. It's all over.
2021-07-07 21:30:29 spruit11_ joins (~quassel@2a02:a467:ccd6:1:f403:cf1e:97b5:1c9b)
2021-07-07 21:31:23 × ptr_frac7al quits (~longlong@user/ptr-frac7al/x-0038398) (Ping timeout: 265 seconds)
2021-07-07 21:32:42 × drd quits (~drd@93-39-151-19.ip76.fastwebnet.it) (Ping timeout: 258 seconds)
2021-07-07 21:33:04 re101-bombay-30 parts (~re101-bom@2601:203:c200:d6f0:2d33:506:5f01:fb2c) ()
2021-07-07 21:33:44 × spruit11 quits (~quassel@2a02:a467:ccd6:1:d8ed:8d81:7c94:d830) (Ping timeout: 256 seconds)
2021-07-07 21:34:01 <boxscape> Am I missing some indentation rule here? I'm pretty confused about the first one not working https://paste.tomsmeding.com/ptyYkVPO
2021-07-07 21:34:13 <boxscape> err, the second one not working
2021-07-07 21:34:21 <AWizzArd> maerwald: 12 minutes that help you to see more into time and understand why currently you move with speed of light: https://www.youtube.com/watch?v=au0QJYISe4c
2021-07-07 21:34:30 <monochrom> Yes, there were famous DOS shareware programs that had expiry dates unless you pay up. People who didn't want to pay pulled the simple trick of setting the computer clock to the past.
2021-07-07 21:34:56 <maerwald> that's an actual HACK
2021-07-07 21:36:37 <boxscape> oh actually
2021-07-07 21:36:51 <boxscape> I had indented the second one one space more than in the paste
2021-07-07 21:36:58 <boxscape> s/second/first
2021-07-07 21:37:09 <boxscape> and the second one also works if I indent it one space further
2021-07-07 21:37:19 <boxscape> though that still seems strange...
2021-07-07 21:37:40 <boxscape> err, hold on
2021-07-07 21:37:52 × takuan quits (~takuan@178-116-218-225.access.telenet.be) (Remote host closed the connection)
2021-07-07 21:37:56 <boxscape> I think I'm just getting confused by how my font's italics look like they're one space further to the right than they are
2021-07-07 21:38:17 <monochrom> fancy
2021-07-07 21:38:41 <boxscape> I should probably turn off italics for syntax highlighting...
2021-07-07 21:40:42 hewxle joins (~hewxle@user/hewxle)
2021-07-07 21:40:52 × spruit11_ quits (~quassel@2a02:a467:ccd6:1:f403:cf1e:97b5:1c9b) (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
2021-07-07 21:41:14 spruit11 joins (~quassel@2a02:a467:ccd6:1:f403:cf1e:97b5:1c9b)
2021-07-07 21:41:19 × hiruji quits (~hiruji@user/hiruji) (Ping timeout: 246 seconds)
2021-07-07 21:42:05 × tcard quits (~tcard@p2307053-ipngn17101hodogaya.kanagawa.ocn.ne.jp) (Quit: Leaving)
2021-07-07 21:42:30 hiruji joins (~hiruji@user/hiruji)
2021-07-07 21:45:45 tcard joins (~tcard@p2307053-ipngn17101hodogaya.kanagawa.ocn.ne.jp)
2021-07-07 21:46:34 × amahl quits (~amahl@dsl-jklbng12-54fbca-64.dhcp.inet.fi) (Remote host closed the connection)
2021-07-07 21:48:17 justsomeguy joins (~justsomeg@user/justsomeguy)
2021-07-07 21:49:53 <lechner> Hi, is cabal really preferred over stack again? (Sorry, no flame intended; this channel is civilized, anyway.) Thanks!
2021-07-07 21:50:53 <monochrom> I prefer cabal. I can't speak for others.
2021-07-07 21:50:54 <geekosaur> cabal's problems were solved with cabal 2; we're on cabal 3.4 now
2021-07-07 21:51:27 <lechner> okay, i am totally behind the times
2021-07-07 21:51:37 <monochrom> In fact, it can get down to the point you really have to ask yourself what you want, not what other people want.
2021-07-07 21:52:16 <monochrom> I prefer cabal because it doesn't install ghc. Other people prefer stack because it does install ghc. There is no way you can win.
2021-07-07 21:52:43 × Vajb quits (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi) (Remote host closed the connection)
2021-07-07 21:52:48 notzmv joins (~zmv@user/notzmv)
2021-07-07 21:53:04 maf654321 joins (~maf654321@user/maf654321)
2021-07-07 21:53:13 <monochrom> And why doesn't someone bring nix to the debate...
2021-07-07 21:53:34 <Rembane> nix will solve all problems! <- there, is fix
2021-07-07 21:53:41 <justsomeguy> Which one is preferred is subjective, but I think it's safe to say that cabal has implemented many features that used to be exclusive to stack. A few features that I have in mind when saying that are project local builds and caching of libraries shared between projects.
2021-07-07 21:53:42 <monochrom> Just to celebrate diversity and free will.
2021-07-07 21:53:43 Vajb joins (~Vajb@hag-jnsbng11-58c3a1-224.dhcp.inet.fi)
2021-07-07 21:54:18 <monochrom> I meta-prefer a free country.
2021-07-07 21:54:37 × raehik quits (~raehik@cpc95906-rdng25-2-0-cust156.15-3.cable.virginm.net) (Ping timeout: 246 seconds)
2021-07-07 21:56:56 <Rembane> IIRC weeder needs stack and weeder is useful, so that's a + for stack.
2021-07-07 21:57:46 × argento quits (~argent0@168-227-97-29.ptr.westnet.com.ar) (Ping timeout: 246 seconds)
2021-07-07 21:58:24 warnz joins (~warnz@2600:1700:77c0:5610:edd9:472d:4b89:9ab8)
2021-07-07 21:59:29 × gehmehgeh quits (~user@user/gehmehgeh) (Quit: Leaving)
2021-07-07 22:01:50 zebrag joins (~chris@user/zebrag)
2021-07-07 22:02:32 × warnz quits (~warnz@2600:1700:77c0:5610:edd9:472d:4b89:9ab8) (Ping timeout: 252 seconds)
2021-07-07 22:02:34 <maerwald> Rembane: huh? weeder uses .hie files afaik
2021-07-07 22:02:58 <maerwald> https://github.com/ocharles/weeder#cabal
2021-07-07 22:03:44 fengctor joins (~fengctor@2605:b100:312:5480:61be:31c7:ea04:6c10)
2021-07-07 22:03:54 × mikoto-chan quits (~mikoto-ch@ip-213-49-189-31.dsl.scarlet.be) (Ping timeout: 252 seconds)
2021-07-07 22:04:03 falafel joins (~falafel@pool-96-255-70-50.washdc.fios.verizon.net)
2021-07-07 22:04:35 <jle`> i kind of like stackage
2021-07-07 22:04:58 Lycurgus joins (~juan@cpe-45-46-140-49.buffalo.res.rr.com)
2021-07-07 22:05:00 <jle`> but not necessarily stack
2021-07-07 22:05:24 <jle`> er, not that i don't like it, just that i'm not too sold on the value prop over cabal. but the idea of a consistent package set is nice to me
2021-07-07 22:05:27 × fengctor quits (~fengctor@2605:b100:312:5480:61be:31c7:ea04:6c10) (Read error: Connection reset by peer)
2021-07-07 22:05:45 <maerwald> stackage breaks down if you manage to pull in two versions of one package, no?
2021-07-07 22:06:05 <Rembane> maerwald: That's good. Then I'm misinformed. Remove that plus from stack. :)
2021-07-07 22:06:07 <jle`> i think it's supposed to guard against that sort of thing?
2021-07-07 22:06:10 × cheater quits (~Username@user/cheater) (Ping timeout: 246 seconds)
2021-07-07 22:06:20 <maerwald> I think they just disable all sorts of tests to avoid it?
2021-07-07 22:06:47 cheater joins (~Username@user/cheater)
2021-07-07 22:06:57 <geekosaur> I thought that described nix, not stack
2021-07-07 22:07:23 <jle`> yeah, stack+stackage etc. resolves all the deps before any building
2021-07-07 22:07:24 <maerwald> I'm not sure if a static package set is the answer... what about stable hackage vs unstable hackage? It's doable
2021-07-07 22:08:03 <jle`> is that the idea of stackage LTS?
2021-07-07 22:08:04 <AWizzArd> Single Sign-On: what Haskell Lib would you use to do this? Did you implement it in your web app?
2021-07-07 22:08:05 <monochrom> hackage is really too large.

All times are in UTC.