2026/02/23

Newest at the top

2026-02-23 13:20:18 +0100 <gentauro> How does `Stackage` get packages? Do they just replicate those from `Hackage`?
2026-02-23 13:20:13 +0100oppili(~oppili@user/nerdypepper) nerdy
2026-02-23 13:20:13 +0100oppili(~oppili@lewi-27-b2-v4wan-165682-cust505.vm4.cable.virginm.net) (Changing host)
2026-02-23 13:20:13 +0100oppili(~oppili@lewi-27-b2-v4wan-165682-cust505.vm4.cable.virginm.net)
2026-02-23 13:19:57 +0100oppili(~oppili@user/nerdypepper) (Server closed connection)
2026-02-23 13:12:55 +0100Frostillicus(~Frostilli@pool-71-174-119-69.bstnma.fios.verizon.net) (Ping timeout: 265 seconds)
2026-02-23 13:12:18 +0100shawwwn(uid6132@id-6132.helmsley.irccloud.com) shawwwn
2026-02-23 13:12:06 +0100shawwwn(uid6132@id-6132.helmsley.irccloud.com) (Server closed connection)
2026-02-23 13:11:37 +0100mal1(~mal@ns2.wyrd.be) lieven
2026-02-23 13:11:17 +0100lieven(~mal@ns2.wyrd.be) (Server closed connection)
2026-02-23 13:08:19 +0100 <Square2> missing one 3, but good enough
2026-02-23 13:08:04 +0100 <Square2> It can't be coincidence this course got number it got https://web.cs.dal.ca/~nzeh/Teaching/3137/haskell/
2026-02-23 13:07:50 +0100 <Milan_Vanca> Hmmm... looks like newtype is only option.
2026-02-23 13:06:03 +0100dyniec(~dyniec@dybiec.info) (Remote host closed the connection)
2026-02-23 13:03:52 +0100fun-safe-math(~fun-safe-@97.115.234.213) fun-safe-math
2026-02-23 13:01:49 +0100fun-safe-math(~fun-safe-@97.115.234.213) ()
2026-02-23 12:55:32 +0100 <int-e> The package does provide the right `fromString` at least. But the IsString instance doesn't use it. That is kind of sad.
2026-02-23 12:54:38 +0100 <int-e> Sorry.
2026-02-23 12:54:35 +0100 <int-e> Oh I guess not, since it's *not* a newtype wrapper.
2026-02-23 12:53:23 +0100 <int-e> Milan_Vanca: maybe you'd be happier with https://hackage.haskell.org/package/utf8-string-1.0.2/docs/Data-ByteString-UTF8.html then
2026-02-23 12:52:54 +0100aku(aku@65.108.245.241) eagleflo
2026-02-23 12:52:46 +0100aku(aku@65.108.245.241) (Server closed connection)
2026-02-23 12:50:56 +0100 <Milan_Vanca> Well but I would argue that ByteString has incorrect implementation.
2026-02-23 12:49:55 +0100 <Milan_Vanca> Ok make sense.. I am going to check if that instance is an orphan.
2026-02-23 12:49:35 +0100 <newmind> which kind of makes sense, the instances should be mostly canonical, with only one real implementation that's part of the type (or class), not something you get to choose
2026-02-23 12:47:54 +0100 <Leary> No, instances have this funny property that they're automatically imported and re-exported by every module they touch. If the instance isn't an orphan you're cooked.
2026-02-23 12:47:40 +0100xnyhps(~xnyhps@s.xnyhps.nl)
2026-02-23 12:47:26 +0100xnyhps(~xnyhps@s.xnyhps.nl) (Server closed connection)
2026-02-23 12:46:17 +0100jonrh(sid5185@id-5185.ilkley.irccloud.com) jonrh
2026-02-23 12:46:06 +0100jonrh(sid5185@id-5185.ilkley.irccloud.com) (Server closed connection)
2026-02-23 12:44:35 +0100 <Milan_Vanca> Ty Leary
2026-02-23 12:44:32 +0100 <Milan_Vanca> I will try to not import whole module but only needed parts, then as Instances are not imported it might work I guess?
2026-02-23 12:43:34 +0100 <Milan_Vanca> 9u
2026-02-23 12:42:47 +0100energizer(~energizer@user/energizer) energizer
2026-02-23 12:42:16 +0100cawfee(root@2401:c080:3800:3460::babe) qjqqyy
2026-02-23 12:42:06 +0100energizer(~energizer@user/energizer) (Server closed connection)
2026-02-23 12:41:57 +0100cawfee(root@2401:c080:3800:3460::babe) (Server closed connection)
2026-02-23 12:33:41 +0100L29Ah(~L29Ah@wikipedia/L29Ah) ()
2026-02-23 12:33:23 +0100 <Leary> Milan_Vanca: Instances must be unique. Unless the other instance is an orphan you can avoid importing, all you can do is give your instance to a newtype over `ByteString`.
2026-02-23 12:30:07 +0100 <Milan_Vanca> Hi guyz! How to solve "duplicate instance declarations"? Data.ByteString.Lazy.Char8 defines IsString ByteString instance. Which I don't like as it truncates. I want proper utf8 implementation so I implemented another instance like fromString = TextLazyEncoding.encodeUtf8 . TextLazy.pack My intent is to start using OverloadedStrings byt with my instance.
2026-02-23 12:29:01 +0100fp(~Thunderbi@130.233.70.214) fp
2026-02-23 12:22:20 +0100Milan_Vanca(~milan@user/Milan-Vanca:32634) Milan_Vanca
2026-02-23 12:20:38 +0100Frostillicus(~Frostilli@pool-71-174-119-69.bstnma.fios.verizon.net)
2026-02-23 12:20:29 +0100edwtjo(~edwtjo@fsf/member/edwtjo) edwtjo
2026-02-23 12:20:29 +0100edwtjo(~edwtjo@h-155-4-52-89.A213.priv.bahnhof.se) (Changing host)
2026-02-23 12:20:29 +0100edwtjo(~edwtjo@h-155-4-52-89.A213.priv.bahnhof.se)
2026-02-23 12:20:06 +0100edwtjo(~edwtjo@fsf/member/edwtjo) (Server closed connection)
2026-02-23 12:19:44 +0100[_________](~oos95GWG@user/oos95GWG) oos95GWG
2026-02-23 12:19:37 +0100Frostillicus(~Frostilli@pool-71-174-119-69.bstnma.fios.verizon.net) (Ping timeout: 248 seconds)
2026-02-23 12:19:26 +0100[_________](~oos95GWG@user/oos95GWG) (Server closed connection)