2024/05/31

Newest at the top

2024-05-31 23:03:46 +0200 <ncf> whatever
2024-05-31 23:03:45 +0200 <ncf> Pair a = a + a
2024-05-31 23:03:39 +0200 <ncf> er not Pair
2024-05-31 23:02:51 +0200 <ncf> type Fin100 = Pair (Pair (Maybe (Pair (Pair (Pair (Maybe (Pair ())))))))
2024-05-31 23:01:29 +0200 <lambdabot> *Exception: Prelude.Enum.Bool.toEnum: bad argument
2024-05-31 23:01:27 +0200 <EvanR> > toEnum 7 :: Bool
2024-05-31 23:00:45 +0200 <EvanR> nice
2024-05-31 23:00:25 +0200 <monochrom> deriving Enum then x+y = toEnum (fromEnum x + fromEnum y)
2024-05-31 23:00:12 +0200ystael(~ystael@user/ystael) (Ping timeout: 260 seconds)
2024-05-31 22:55:30 +0200 <EvanR> then write a script to produce the addition algorithm
2024-05-31 22:55:18 +0200 <EvanR> data Fin100 ftw
2024-05-31 22:54:40 +0200 <EvanR> that's like spice level 5 at suko thai
2024-05-31 22:54:23 +0200 <monochrom> -50 to +50 except 0 is spicier.
2024-05-31 22:54:09 +0200 <ncf> data Fin100 = F0 | F1 | ... | F99
2024-05-31 22:53:54 +0200 <EvanR> tolerance for spice levels vary
2024-05-31 22:53:53 +0200 <monochrom> Oh heh OK
2024-05-31 22:53:31 +0200 <EvanR> it seems spicier, I don't know about better
2024-05-31 22:53:03 +0200 <monochrom> Why is 1 to 100 better than 0 to 99?
2024-05-31 22:52:21 +0200 <EvanR> at the very least spice it up and make the require arguments 1 to 100
2024-05-31 22:51:47 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1) (Quit: Leaving)
2024-05-31 22:50:51 +0200 <monochrom> Sorry! I will in comments explain that it is unsatisfactory but it's just a weekly tutorial toy exercise.
2024-05-31 22:50:43 +0200 <Rembane> Exciting!
2024-05-31 22:50:26 +0200 <monochrom> And to your horror, I have decided to commit both crimes.
2024-05-31 22:50:24 +0200lxsameer(~lxsameer@Serene/lxsameer) (Ping timeout: 260 seconds)
2024-05-31 22:50:03 +0200 <monochrom> Unfortunately I am only teaching elementary Haskell so I cannot use type-level numbers for this.
2024-05-31 22:46:10 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1)
2024-05-31 22:45:52 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1) (Remote host closed the connection)
2024-05-31 22:45:02 +0200average(uid473595@user/average) (Quit: Connection closed for inactivity)
2024-05-31 22:43:46 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl)
2024-05-31 22:42:23 +0200__monty__(~toonn@user/toonn) (Quit: leaving)
2024-05-31 22:41:52 +0200 <EvanR> Fin 100
2024-05-31 22:40:54 +0200tromp(~textual@92-110-219-57.cable.dynamic.v4.ziggo.nl) (Quit: My iMac has gone to sleep. ZZZzzz…)
2024-05-31 22:40:34 +0200 <dmj`> monochrom: maybe use the latter, but with Nat. foo :: (0 <= n, n <= 99, KnownNat n) => Proxy n -> Double , and you can be forgiven.
2024-05-31 22:38:27 +0200mud(~mud@user/kadoban)
2024-05-31 22:37:47 +0200mud(~mud@user/kadoban) (Ping timeout: 264 seconds)
2024-05-31 22:36:11 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1)
2024-05-31 22:35:52 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1) (Remote host closed the connection)
2024-05-31 22:32:16 +0200 <EvanR> balance restored
2024-05-31 22:32:08 +0200 <EvanR> make it Int->Double but the argument must be -50 to +50 and not zero
2024-05-31 22:27:17 +0200Guest184(~user@72.2.12.179) (Remote host closed the connection)
2024-05-31 22:22:24 +0200peterbecich(~Thunderbi@syn-047-229-123-186.res.spectrum.com) (Ping timeout: 260 seconds)
2024-05-31 22:20:07 +0200jmdaemon(~jmdaemon@user/jmdaemon)
2024-05-31 22:19:42 +0200vadparaszt(~Rodney@176.254.244.83)
2024-05-31 22:19:40 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1)
2024-05-31 22:19:22 +0200andrei_n(~andrei.n@2a02:a03f:c091:a800:7a1c:ed14:ce2e:23b1) (Remote host closed the connection)
2024-05-31 22:18:52 +0200Rodney_(~Rodney@176.254.244.83) (Excess Flood)
2024-05-31 22:18:45 +0200Rodney_(~Rodney@176.254.244.83)
2024-05-31 22:16:39 +0200causal(~eric@50.35.88.207) (Quit: WeeChat 4.1.1)
2024-05-31 22:13:51 +0200pavonia(~user@user/siracusa)
2024-05-31 22:12:01 +0200rosco(~rosco@90.58.221.226) (Quit: Lost terminal)