2026/02/04

Newest at the top

2026-02-04 02:54:21 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-02-04 02:53:55 +0100 <geekosaur> we already do that (see `Foldable` and `Traversable` instances on tuples)
2026-02-04 02:50:10 +0100xff0x(~xff0x@fsb6a9491c.tkyc517.ap.nuro.jp)
2026-02-04 02:44:26 +0100 <EvanR> just seems like defining things for the sake of it so "they do something" (js style)
2026-02-04 02:43:52 +0100 <EvanR> to me it seems like adding the note B to the note F... makes sense if you assume MIDI but...
2026-02-04 02:43:21 +0100 <EvanR> a C programmer would be impressed... except the modulo is by some oddball number 1114112 ?
2026-02-04 02:42:50 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 245 seconds)
2026-02-04 02:42:35 +0100 <probie> I propose Just ('a' <> 'b') should be Just (chr ((ord 'a' + ord 'b') `mod` (ord maxBound))). It's a lawful instance
2026-02-04 02:38:12 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-02-04 02:33:48 +0100 <EvanR> Just ('a' <> 'b')
2026-02-04 02:33:27 +0100 <lambdabot> In the expression: Just 'a' <> Just 'b'
2026-02-04 02:33:27 +0100 <lambdabot> No instance for ‘Semigroup Char’ arising from a use of ‘<>’
2026-02-04 02:33:26 +0100 <EvanR> > Just 'a' <> Just 'b' -- what should happen
2026-02-04 02:33:00 +0100 <lambdabot> First {getFirst = Just 'a'}
2026-02-04 02:32:59 +0100 <EvanR> > First (Just 'a') <> First (Just 'b')
2026-02-04 02:32:55 +0100Square2(~Square@user/square) Square
2026-02-04 02:31:42 +0100omidmash6omidmash
2026-02-04 02:31:42 +0100omidmash(~omidmash@user/omidmash) (Ping timeout: 244 seconds)
2026-02-04 02:31:25 +0100trickard_trickard
2026-02-04 02:31:03 +0100 <lambdabot> Nothing
2026-02-04 02:31:02 +0100 <EvanR> > mempty :: Maybe (NonEmpty Char)
2026-02-04 02:29:57 +0100 <lambdabot> First {getFirst = Nothing}
2026-02-04 02:29:56 +0100 <EvanR> > mempty :: First (Maybe Char)
2026-02-04 02:29:49 +0100omidmash6(~omidmash@user/omidmash) omidmash
2026-02-04 02:29:14 +0100 <EvanR> maybe you're thinking of First
2026-02-04 02:29:13 +0100DigitteknohippieDigit
2026-02-04 02:27:18 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 256 seconds)
2026-02-04 02:26:53 +0100 <yin> the latter yeah, but i get it
2026-02-04 02:23:47 +0100 <ncf> or that Monoid (Maybe a) requires Semigroup a? that one might be up for debate
2026-02-04 02:23:20 +0100 <ncf> that there's no Semigroup instance for Char? not particularly, no
2026-02-04 02:22:23 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-02-04 02:22:20 +0100Square2(~Square@user/square) (Remote host closed the connection)
2026-02-04 02:21:31 +0100mvk(~mvk@2607:fea8:5c9d:ee00::5716) (Client Quit)
2026-02-04 02:21:28 +0100mvk(~mvk@2607:fea8:5c9d:ee00::5716) mvk
2026-02-04 02:16:51 +0100 <yin> isn't this weird?
2026-02-04 02:16:46 +0100 <lambdabot> In the expression: mempty :: Maybe Char
2026-02-04 02:16:46 +0100 <lambdabot> No instance for ‘Semigroup Char’ arising from a use of ‘mempty’
2026-02-04 02:16:45 +0100 <yin> > mempty :: Maybe Char
2026-02-04 02:16:06 +0100wickedjargon(~user@24.83.46.194) (Remote host closed the connection)
2026-02-04 02:11:43 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 264 seconds)
2026-02-04 02:10:59 +0100paddymahoney(~paddymaho@pool-99-250-10-137.cpe.net.cable.rogers.com)
2026-02-04 02:10:52 +0100otto_s(~user@p5de2f01c.dip0.t-ipconnect.de)
2026-02-04 02:09:18 +0100otto_s(~user@p4ff273b1.dip0.t-ipconnect.de) (Ping timeout: 252 seconds)
2026-02-04 02:06:39 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn
2026-02-04 02:00:56 +0100paddymahoney(~paddymaho@pool-99-250-10-137.cpe.net.cable.rogers.com) (Remote host closed the connection)
2026-02-04 01:59:29 +0100Digit(~user@user/digit) (Ping timeout: 260 seconds)
2026-02-04 01:59:11 +0100Digitteknohippie(~user@user/digit) Digit
2026-02-04 01:55:59 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) (Ping timeout: 260 seconds)
2026-02-04 01:51:13 +0100wickedjargon(~user@24.83.46.194) wickedjargon
2026-02-04 01:50:48 +0100merijn(~merijn@host-cl.cgnat-g.v4.dfn.nl) merijn