2025/02/09

Newest at the top

2025-02-09 07:29:22 +0100tri(~tri@2601:182:780:720::55a0) (Remote host closed the connection)
2025-02-09 07:29:05 +0100img(~img@user/img) img
2025-02-09 07:27:44 +0100img(~img@user/img) (Quit: ZNC 1.8.2 - https://znc.in)
2025-02-09 07:25:01 +0100Square3Square2
2025-02-09 07:20:00 +0100Square2(~Square@user/square) (Quit: Leaving)
2025-02-09 07:18:08 +0100aaronv(~aaronv@user/aaronv) aaronv
2025-02-09 07:16:58 +0100gmg(~user@user/gehmehgeh) gehmehgeh
2025-02-09 07:16:13 +0100gmg(~user@user/gehmehgeh) (Remote host closed the connection)
2025-02-09 07:14:49 +0100tnt2tnt1
2025-02-09 07:14:49 +0100tnt1(~Thunderbi@user/tnt1) (Ping timeout: 265 seconds)
2025-02-09 07:14:23 +0100tnt2(~Thunderbi@user/tnt1) tnt1
2025-02-09 07:13:17 +0100aaronv(~aaronv@user/aaronv) (Ping timeout: 268 seconds)
2025-02-09 07:08:29 +0100 <tri> thank you
2025-02-09 07:06:39 +0100weary-traveler(~user@user/user363627) (Remote host closed the connection)
2025-02-09 07:01:49 +0100chiselfuse(~chiselfus@user/chiselfuse) chiselfuse
2025-02-09 07:01:12 +0100chiselfuse(~chiselfus@user/chiselfuse) (Remote host closed the connection)
2025-02-09 06:58:18 +0100 <ski> (if there's parse-error, that will raise the error while the action is executed, as opposed to when the result is forced)
2025-02-09 06:57:23 +0100 <ski> better to use that, rather than `getLine' & `read'
2025-02-09 06:56:45 +0100 <lambdabot> Read a => IO a
2025-02-09 06:56:45 +0100 <ski> @type readLn -- tri
2025-02-09 06:49:14 +0100alfiee(~alfiee@user/alfiee) (Ping timeout: 268 seconds)
2025-02-09 06:47:55 +0100 <tri> ah! thank you. It's been a long time since I last used Haskell :)
2025-02-09 06:46:09 +0100 <monochrom> Conversely, I see people writing in C "return(x+y)" all the time. :)
2025-02-09 06:45:36 +0100 <int-e> tri: keep in mind that in Haskell `return` is a function, not syntax.
2025-02-09 06:44:38 +0100alfiee(~alfiee@user/alfiee) alfiee
2025-02-09 06:44:29 +0100 <int-e> s/or/of/
2025-02-09 06:44:21 +0100 <int-e> (the type will then be taken from the type signature or `readList`)
2025-02-09 06:44:14 +0100ljdarj(~Thunderbi@user/ljdarj) (Ping timeout: 244 seconds)
2025-02-09 06:43:44 +0100 <int-e> you can drop the @[Int], but you still need parentheses
2025-02-09 06:43:18 +0100 <int-e> the "expression of type ‘m0 a0’" I mean
2025-02-09 06:43:01 +0100 <int-e> that's the m0 a0, more or less
2025-02-09 06:42:48 +0100 <lambdabot> (Monad m, Read a) => m (String -> a)
2025-02-09 06:42:47 +0100 <int-e> :t return read
2025-02-09 06:42:36 +0100 <c_wraith> return (...)
2025-02-09 06:42:32 +0100 <c_wraith> Add parens
2025-02-09 06:42:20 +0100 <tri> how could I fix this please? I don't understand the error message, especially m0 and a0
2025-02-09 06:42:09 +0100 <tri> to a visible type argument ‘[Int]
2025-02-09 06:42:09 +0100 <tri> Cannot apply expression of type ‘m0 a0’
2025-02-09 06:41:06 +0100 <tri> https://paste.tomsmeding.com/XPlMpEUw
2025-02-09 06:35:00 +0100bitdex(~bitdex@gateway/tor-sasl/bitdex) (Ping timeout: 264 seconds)
2025-02-09 06:34:52 +0100weary-traveler(~user@user/user363627) user363627
2025-02-09 06:28:07 +0100weary-traveler(~user@user/user363627) (Quit: Konversation terminated!)
2025-02-09 06:27:17 +0100lisbeths(uid135845@id-135845.lymington.irccloud.com) lisbeths
2025-02-09 06:19:02 +0100Loshki(~Loshki@c-98-42-126-198.hsd1.ca.comcast.net) (Leaving)
2025-02-09 06:18:58 +0100Loshki(~Loshki@c-98-42-126-198.hsd1.ca.comcast.net)
2025-02-09 06:14:10 +0100jle`(~jle`@2603:8001:3b00:11:8cd8:7ce2:93ee:a30) jle`
2025-02-09 06:07:41 +0100jle`(~jle`@syn-023-240-067-073.res.spectrum.com) (Quit: WeeChat 4.5.1)
2025-02-09 06:06:27 +0100 <tri> hmm ok
2025-02-09 06:01:09 +0100 <monochrom> Now to probe the boundary of your understanding, "g xs ys = sum (zipWith f xs ys)" can still be simplified with (.), but only as: g xs = sum . zipWith f xs
2025-02-09 06:01:02 +0100alfiee(~alfiee@user/alfiee) (Ping timeout: 252 seconds)