2024/05/03

Newest at the top

2024-05-03 16:23:08 +0200tv(~tv@user/tv)
2024-05-03 16:22:58 +0200 <gaff> EvanR: I am not sure what you mena there, Both expressions have the same type.
2024-05-03 16:22:15 +0200 <EvanR> otherwise, one expands to Monad the other Applicative class
2024-05-03 16:21:50 +0200 <EvanR> not if you enable ApplicativeDo
2024-05-03 16:21:43 +0200agent314_(~quassel@104.193.135.218) (Ping timeout: 268 seconds)
2024-05-03 16:21:37 +0200agent314(~quassel@185.102.218.105.adsl.inet-telecom.org)
2024-05-03 16:21:35 +0200stiell(~stiell@gateway/tor-sasl/stiell)
2024-05-03 16:20:10 +0200stiell(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 16:19:23 +0200onion(~yin@user/zero)
2024-05-03 16:19:14 +0200 <gaff> Is there any difference between writing code in the applicative vs monadic style? For example, `some p = do { x <- p; xs <- many p; return (x:xs) }` VS `some p = (:) <$> p <*> many p`?
2024-05-03 16:17:43 +0200onion(~yin@user/zero) (Ping timeout: 255 seconds)
2024-05-03 16:17:20 +0200 <kuribas> "forall a. " means "for any type a"
2024-05-03 16:17:05 +0200waleee(~waleee@h-176-10-144-38.NA.cust.bahnhof.se) (Quit: WeeChat 4.1.2)
2024-05-03 16:16:54 +0200 <kuribas> That's what (f :: forall a. a -> a) means
2024-05-03 16:16:38 +0200gaff(~gaff@49.207.227.255)
2024-05-03 16:16:25 +0200stiell_(~stiell@gateway/tor-sasl/stiell)
2024-05-03 16:16:21 +0200 <kuribas> First argument of "id'" should be a function that works on any type.
2024-05-03 16:16:19 +0200machinedgod(~machinedg@d173-183-246-216.abhsia.telus.net)
2024-05-03 16:15:30 +0200stiell_(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 16:15:19 +0200 <kuribas> You say succ would work with any type, but it doesn't.
2024-05-03 16:11:35 +0200stiell(~stiell@gateway/tor-sasl/stiell)
2024-05-03 16:11:26 +0200danse-nr3(~danse-nr3@151.43.124.243) (Ping timeout: 255 seconds)
2024-05-03 16:11:12 +0200euphores(~SASL_euph@user/euphores)
2024-05-03 16:10:22 +0200stiell(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 16:06:39 +0200stiell_(~stiell@gateway/tor-sasl/stiell)
2024-05-03 16:05:14 +0200stiell_(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 16:04:50 +0200euphores(~SASL_euph@user/euphores) (Quit: Leaving.)
2024-05-03 16:02:36 +0200onion(~yin@user/zero)
2024-05-03 16:01:32 +0200stiell(~stiell@gateway/tor-sasl/stiell)
2024-05-03 16:01:26 +0200ft(~ft@p3e9bc1bf.dip0.t-ipconnect.de) (Quit: leaving)
2024-05-03 16:00:29 +0200onion(~yin@user/zero) (Ping timeout: 240 seconds)
2024-05-03 15:59:38 +0200stiell(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 15:56:27 +0200stiell_(~stiell@gateway/tor-sasl/stiell)
2024-05-03 15:55:26 +0200stiell_(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 15:53:32 +0200 <onion> yes sorry for the noise
2024-05-03 15:51:48 +0200 <EvanR> you can use lambdabot in a private message
2024-05-03 15:51:44 +0200stiell(~stiell@gateway/tor-sasl/stiell)
2024-05-03 15:50:18 +0200stiell(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 15:46:36 +0200stiell_(~stiell@gateway/tor-sasl/stiell)
2024-05-03 15:45:10 +0200stiell_(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 15:44:45 +0200mwnaylor(~user@2601:5cf:837e:2bb0::c22d) (Remote host closed the connection)
2024-05-03 15:44:34 +0200zmt00(~zmt00@user/zmt00)
2024-05-03 15:42:21 +0200 <lambdabot> ‘a2’ is a rigid type variable bound by
2024-05-03 15:42:20 +0200 <lambdabot> • Couldn't match expected type ‘a2’ with actual type ‘Int’
2024-05-03 15:42:20 +0200 <lambdabot> error:
2024-05-03 15:42:19 +0200 <onion> > let id' (f :: forall a. a -> a) (x :: Int) = f x :: a in id' succ 7
2024-05-03 15:41:31 +0200stiell(~stiell@gateway/tor-sasl/stiell)
2024-05-03 15:40:30 +0200stiell(~stiell@gateway/tor-sasl/stiell) (Ping timeout: 260 seconds)
2024-05-03 15:36:52 +0200 <onion> hmm..
2024-05-03 15:36:46 +0200 <lambdabot> 8