2025/06/10

Newest at the top

2025-06-10 11:51:00 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr)
2025-06-10 11:50:47 +0200poscat(~poscat@user/poscat) poscat
2025-06-10 11:50:33 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection)
2025-06-10 11:50:18 +0200 <Tikosh> I am a bit of a noob in programming in general. so, i have lots of questions
2025-06-10 11:49:53 +0200loreto(~loreto@user/loreto) (Ping timeout: 272 seconds)
2025-06-10 11:49:17 +0200 <ski> Tikosh : looks like `gameTwo' was possibly intended to end the loop, in case the `String' was non-empty ?
2025-06-10 11:48:09 +0200 <ski> imho, `else' should be on the same level as `then'; or else (heh) at the same level as `if', and followed by a `do' (and then following line(s) also indented at the same level, per language extension `NondecreasingIndentation')
2025-06-10 11:47:44 +0200fallohide(~fallohide@user/fallohide) fallohide
2025-06-10 11:47:34 +0200poscat(~poscat@user/poscat) (Remote host closed the connection)
2025-06-10 11:46:54 +0200poscat(~poscat@user/poscat) poscat
2025-06-10 11:46:28 +0200poscat(~poscat@user/poscat) (Remote host closed the connection)
2025-06-10 11:46:21 +0200poscat(~poscat@user/poscat) poscat
2025-06-10 11:44:53 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr)
2025-06-10 11:44:38 +0200tzh(~tzh@c-76-115-131-146.hsd1.or.comcast.net) (Quit: zzz)
2025-06-10 11:44:30 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection)
2025-06-10 11:43:31 +0200loreto(~loreto@user/loreto) loreto
2025-06-10 11:43:17 +0200poscat(~poscat@user/poscat) (Remote host closed the connection)
2025-06-10 11:42:05 +0200poscat(~poscat@user/poscat) poscat
2025-06-10 11:40:20 +0200poscat(~poscat@user/poscat) (Remote host closed the connection)
2025-06-10 11:37:42 +0200poscat(~poscat@user/poscat) poscat
2025-06-10 11:37:21 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr)
2025-06-10 11:36:58 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection)
2025-06-10 11:34:30 +0200poscat(~poscat@user/poscat) (Remote host closed the connection)
2025-06-10 11:34:27 +0200 <kuribas> (from Control.Monad)
2025-06-10 11:34:19 +0200 <kuribas> or main = forever gameOne
2025-06-10 11:32:24 +0200 <Tikosh> oh
2025-06-10 11:32:14 +0200 <kuribas> Tikosh: I suppose your question is, how do I run gameOne in a loop? You can do main = do gameOne; main
2025-06-10 11:32:14 +0200 <Tikosh> how would one use guards in the gameTwo function?
2025-06-10 11:31:50 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr)
2025-06-10 11:31:24 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection)
2025-06-10 11:31:07 +0200 <kuribas> I suppose some people find it too noisy.
2025-06-10 11:30:54 +0200 <kuribas> right, well top-level pattern match.
2025-06-10 11:30:53 +0200loreto(~loreto@user/loreto) (Ping timeout: 272 seconds)
2025-06-10 11:30:23 +0200 <Leary> Well, they are.
2025-06-10 11:30:02 +0200 <kuribas> I'd also pattern match for questionResponse.
2025-06-10 11:29:53 +0200prdak(~Thunderbi@user/prdak) (Ping timeout: 248 seconds)
2025-06-10 11:29:31 +0200 <kuribas> gameTwo "" = putStrLn $ questionResponse ""; gameTwo _ = pure ()
2025-06-10 11:27:45 +0200ChanServ+v haskellbridge
2025-06-10 11:27:45 +0200haskellbridge(~hackager@syn-096-028-224-227.res.spectrum.com) hackager
2025-06-10 11:27:03 +0200 <Leary> Or pattern matching.
2025-06-10 11:26:49 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr)
2025-06-10 11:26:25 +0200sabathan2(~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection)
2025-06-10 11:26:23 +0200 <kuribas> Tikosh: just remove the do in gameTwo, and properly align if then else. Or better, use guards.
2025-06-10 11:26:18 +0200tromp(~textual@2001:1c00:3487:1b00:3118:4ea3:5510:b6f) (Quit: My iMac has gone to sleep. ZZZzzz…)
2025-06-10 11:25:43 +0200 <kuribas> I suppose haskells weird indentation rules allow it.
2025-06-10 11:25:22 +0200 <Tikosh> oh! okay
2025-06-10 11:25:21 +0200loreto(~loreto@user/loreto) loreto
2025-06-10 11:25:20 +0200 <Leary> That if-then-else ... it frightens me.
2025-06-10 11:25:14 +0200 <kuribas> shouldn't it be on the level of "then"?
2025-06-10 11:25:07 +0200 <kuribas> The else looks wrong though...