Home freenode/#haskell: Logs Calendar

Logs: freenode/#haskell

←Prev  Next→ 502,152 events total
2021-03-18 06:16:44 × Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Read error: Connection reset by peer)
2021-03-18 06:17:00 × kam1 quits (~kam1@83.123.237.152) (Read error: Connection reset by peer)
2021-03-18 06:17:19 <Axman6> CodeKiwi: for a sec I thought you'd linked to https://github.com/mxswd/flip-plus, which is... amazing
2021-03-18 06:17:26 Narinas joins (~Narinas@187-178-93-112.dynamic.axtel.net)
2021-03-18 06:18:25 sjtfre1 joins (~sjtfre@124.239.70.146)
2021-03-18 06:19:20 × sjtfre quits (~sjtfre@124.239.70.146) (Read error: Connection reset by peer)
2021-03-18 06:19:21 × Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Read error: Connection reset by peer)
2021-03-18 06:19:48 <Axman6> the fact that github won't render the only haskell file in that repo should give you some idea of how awesome it is
2021-03-18 06:19:57 <Cale> hahaha
2021-03-18 06:20:12 <Cale> How long does ghc take to compile the module?
2021-03-18 06:20:16 Narinas joins (~Narinas@187-178-93-112.dynamic.axtel.net)
2021-03-18 06:20:26 <Axman6> I don't know... I've never been game to try
2021-03-18 06:20:32 <Cale> Seems like potentially a good performance benchmark
2021-03-18 06:20:49 <Axman6> indeed
2021-03-18 06:21:14 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 260 seconds)
2021-03-18 06:21:21 knupfer joins (~Thunderbi@200116b82c062100c4a7805106b9f6d2.dip.versatel-1u1.de)
2021-03-18 06:21:37 <Axman6> also, take that Control.Lens.Operators
2021-03-18 06:21:56 × Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Read error: Connection reset by peer)
2021-03-18 06:22:04 <Cale> It's certainly taking its sweet time with it
2021-03-18 06:22:13 Narinas joins (~Narinas@187-178-93-112.dynamic.axtel.net)
2021-03-18 06:22:23 <Cale> about 1 minute
2021-03-18 06:22:34 × waleee-cl quits (uid373333@gateway/web/irccloud.com/x-fvkpewqjehdvcehc) (Quit: Connection closed for inactivity)
2021-03-18 06:23:02 <Cale> That's about 834 lines per second
2021-03-18 06:23:05 <slack1256> It is not even on ACME.* .
2021-03-18 06:23:26 <Axman6> this is serious shit slack1256, no time for jokes here
2021-03-18 06:23:50 <Cale> You mean it's serious $#!&
2021-03-18 06:24:07 × sgibber2018 quits (d055ed90@208.85.237.144) (Quit: Connection closed)
2021-03-18 06:24:18 <slack1256> Hahaha, hey ACME is seriously, just dangerous.
2021-03-18 06:24:22 <Axman6> still waiting for GHCi to interpret it...
2021-03-18 06:24:33 <slack1256> Imagine putting a # where a & was expected#
2021-03-18 06:24:37 <slack1256> !
2021-03-18 06:24:49 <Axman6> oh the irony, haha
2021-03-18 06:24:54 <Axman6> Ok, one module loaded.
2021-03-18 06:24:55 <Axman6> (117.81 secs,)
2021-03-18 06:26:56 kam1 joins (~kam1@83.123.237.152)
2021-03-18 06:27:07 × kam1 quits (~kam1@83.123.237.152) (Client Quit)
2021-03-18 06:28:00 merijn joins (~merijn@83-160-49-249.ip.xs4all.nl)
2021-03-18 06:28:45 × Wuzzy quits (~Wuzzy@p57a2ecf2.dip0.t-ipconnect.de) (Remote host closed the connection)
2021-03-18 06:29:08 <Axman6> cabal v2-build 159.18s user 6.70s system 96% cpu 2:52.55 total
2021-03-18 06:32:33 wroathe joins (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net)
2021-03-18 06:34:22 sjtfre joins (~sjtfre@124.239.70.146)
2021-03-18 06:34:29 famubu joins (~famubu@117.206.45.254)
2021-03-18 06:34:33 × sjtfre1 quits (~sjtfre@124.239.70.146) (Ping timeout: 256 seconds)
2021-03-18 06:37:36 dsrt^ joins (dsrt@ip98-184-89-2.mc.at.cox.net)
2021-03-18 06:37:43 × wroathe quits (~wroathe@c-68-54-25-135.hsd1.mn.comcast.net) (Ping timeout: 276 seconds)
2021-03-18 06:37:44 × sjtfre quits (~sjtfre@124.239.70.146) (Read error: Connection reset by peer)
2021-03-18 06:37:44 sjtfre1 joins (~sjtfre@124.239.70.146)
2021-03-18 06:42:49 <famubu> I created a function to check if a character is a white space (space/newline/tab). Is there any advantage of using pattern matching over guards? This is what I tried: https://paste.tomsmeding.com/BOTlXmO8
2021-03-18 06:43:17 × jb55 quits (~jb55@gateway/tor-sasl/jb55) (Remote host closed the connection)
2021-03-18 06:43:38 jb55 joins (~jb55@gateway/tor-sasl/jb55)
2021-03-18 06:44:35 <slack1256> At least for Char/Int where equality is really simple, both are equivalent.
2021-03-18 06:44:52 <slack1256> Also, you can pattern match on guard too.
2021-03-18 06:45:08 <famubu> slack1256: So there is a difference when equality is more complex?
2021-03-18 06:45:38 <famubu> I wasn't sure if 'pattern matching' and 'guards' were the right terms there.. :-D
2021-03-18 06:46:03 <slack1256> https://paste.tomsmeding.com/VlmXB1n0
2021-03-18 06:46:58 <CodeKiwi> i've been finding a lot of libraries that don't compile anymore they say ambiguous occurrence what's that about
2021-03-18 06:47:01 × jrqc quits (~rofl@96.78.87.197) (Ping timeout: 256 seconds)
2021-03-18 06:47:16 <slack1256> famubu: Yeah, it mostly depends on how "deep" is the ADT. Think list, where equality is element per element but case analisis is about whether it is a cons or the empty case.
2021-03-18 06:47:44 <slack1256> Char and Int are really flat, so the equality and case analysis are the same.
2021-03-18 06:48:16 <slack1256> CodeKiwi: GHC 9.0.1?
2021-03-18 06:48:25 <CodeKiwi> 8.10.4
2021-03-18 06:48:31 <famubu> slack1256: Ah.. I got a better idea now. Thanks a lot!
2021-03-18 06:48:35 <c_wraith> ... your point is right, but the example isn't *quite* right. Char and Int have one level of nesting.
2021-03-18 06:48:54 sord937 joins (~sord937@gateway/tor-sasl/sord937)
2021-03-18 06:49:04 <slack1256> c_wraith: yeah, but that distinction at this level will only confuse it more.
2021-03-18 06:49:17 <c_wraith> Bool is a good example!
2021-03-18 06:49:58 <slack1256> "deep" and "flat" are loosly defined ("a lo amigo/modulo buena voluntad" how we said here)
2021-03-18 06:50:04 jrqc joins (~rofl@96.78.87.197)
2021-03-18 06:50:34 <c_wraith> "among friends", maybe?
2021-03-18 06:51:00 <slack1256> Ya eres cuate c_wraith :-)
2021-03-18 06:52:33 <slack1256> CodeKiwi: Which library for example?
2021-03-18 06:52:45 bitmagie joins (~Thunderbi@200116b8060fe700383a25a1bbfaa0e2.dip.versatel-1u1.de)
2021-03-18 06:53:44 sjtfre joins (~sjtfre@124.239.70.146)
2021-03-18 06:54:26 × Sgeo quits (~Sgeo@ool-18b98aa4.dyn.optonline.net) (Read error: Connection reset by peer)
2021-03-18 06:55:03 × sjtfre1 quits (~sjtfre@124.239.70.146) (Ping timeout: 245 seconds)
2021-03-18 06:55:31 sjtfre1 joins (~sjtfre@124.239.70.146)
2021-03-18 06:55:47 <CodeKiwi> hquantlib-time
2021-03-18 06:56:32 × lewky quits (~lewky@159.65.37.240) (Quit: The Lounge - https://thelounge.chat)
2021-03-18 06:57:01 lewky joins (~lewky@159.65.37.240)
2021-03-18 06:57:10 <hugo> Is there a find equivalent for lenses? So if I have a list of Either a, I want to focus (is this the right word?) on the first Right value.
2021-03-18 06:58:21 × sjtfre quits (~sjtfre@124.239.70.146) (Ping timeout: 256 seconds)
2021-03-18 06:58:51 <CodeKiwi> https://github.com/Lucsanszky/haskell-binance too
2021-03-18 07:02:03 <slack1256> I don't know about "ambiguous occurrences", but hquantlib-time fails to build on my machine for the upper bound on time 1.9.0.0, which is old...
2021-03-18 07:02:18 × merijn quits (~merijn@83-160-49-249.ip.xs4all.nl) (Ping timeout: 260 seconds)
2021-03-18 07:02:24 Varis joins (~Tadas@unaffiliated/varis)
2021-03-18 07:02:32 <CodeKiwi> https://dpaste.com/HQ8DEXPRT
2021-03-18 07:03:08 <CodeKiwi> that was with 884 but i think it's the same as the one in 8104
2021-03-18 07:04:57 <slack1256> Fellow nix user :-)
2021-03-18 07:05:49 × Narinas quits (~Narinas@187-178-93-112.dynamic.axtel.net) (Read error: Connection reset by peer)
2021-03-18 07:06:52 × Varis quits (~Tadas@unaffiliated/varis) (Client Quit)
2021-03-18 07:07:32 × sjtfre1 quits (~sjtfre@124.239.70.146) (Read error: Connection reset by peer)
2021-03-18 07:07:43 sjtfre joins (~sjtfre@124.239.70.146)
2021-03-18 07:07:54 Forlorn joins (~Forlorn@unaffiliated/forlorn)
2021-03-18 07:08:09 <slack1256> CodeKiwi: Can you run inside the nix-shell the command `ghc-pkg field time version`?
2021-03-18 07:08:24 <slack1256> I think I know what it is.
2021-03-18 07:09:32 benkolera joins (uid285671@gateway/web/irccloud.com/x-umfyvnhcrdleizmf)
2021-03-18 07:10:04 <CodeKiwi> 1.9.3
2021-03-18 07:11:56 <slack1256> Check these two modules
2021-03-18 07:12:03 <slack1256> https://hackage.haskell.org/package/time-1.8.0.2/docs/Data-Time-Calendar.html
2021-03-18 07:12:19 <slack1256> https://hackage.haskell.org/package/time-1.9.3/docs/Data-Time-Calendar.html

All times are in UTC.