Newest at the top
2025-06-10 11:57:31 +0200 | <ski> | well, you'll get better, if you keep trying at it |
2025-06-10 11:57:26 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection) |
2025-06-10 11:57:13 +0200 | <Tikosh> | the problem i have is asking the right questions |
2025-06-10 11:57:06 +0200 | <ski> | the `forever' or `main = do ...; main' would be infinite loops, if you want to stop eventually / under some condition, you need maybe something like `main = do ...; if ... then ... else do ...; main' (or, you could use `exitSuccess' (or `exitFailure',`exitWith', in module `System.Exit', to abort the loop, ending the program execution / process) |
2025-06-10 11:55:24 +0200 | tromp | (~textual@2001:1c00:3487:1b00:3118:4ea3:5510:b6f) |
2025-06-10 11:54:24 +0200 | fallohide | (~fallohide@user/fallohide) (Ping timeout: 276 seconds) |
2025-06-10 11:53:16 +0200 | <ski> | Tikosh : well, feel free to voice them ! it's one large reason for this channel :) |
2025-06-10 11:52:45 +0200 | <ski> | readability/clarity) (especially when there's a lot og other parameters to repeat) |
2025-06-10 11:52:39 +0200 | <ski> | the pattern-matching in the definienda (left-hand sides) of the defining equtions is often easier to read and understand, in isolation (especially when no patterns (or guards) in later defining equations overlaps with ones in earlier ones) .. but you do hae to repeat the name (usually a function) being defined, and also other possible parameter patterns, which some might find a bit noisy (brevity vs. |
2025-06-10 11:51:00 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) |
2025-06-10 11:50:47 +0200 | poscat | (~poscat@user/poscat) poscat |
2025-06-10 11:50:33 +0200 | sabathan2 | (~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 +0200 | loreto | (~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 +0200 | fallohide | (~fallohide@user/fallohide) fallohide |
2025-06-10 11:47:34 +0200 | poscat | (~poscat@user/poscat) (Remote host closed the connection) |
2025-06-10 11:46:54 +0200 | poscat | (~poscat@user/poscat) poscat |
2025-06-10 11:46:28 +0200 | poscat | (~poscat@user/poscat) (Remote host closed the connection) |
2025-06-10 11:46:21 +0200 | poscat | (~poscat@user/poscat) poscat |
2025-06-10 11:44:53 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) |
2025-06-10 11:44:38 +0200 | tzh | (~tzh@c-76-115-131-146.hsd1.or.comcast.net) (Quit: zzz) |
2025-06-10 11:44:30 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection) |
2025-06-10 11:43:31 +0200 | loreto | (~loreto@user/loreto) loreto |
2025-06-10 11:43:17 +0200 | poscat | (~poscat@user/poscat) (Remote host closed the connection) |
2025-06-10 11:42:05 +0200 | poscat | (~poscat@user/poscat) poscat |
2025-06-10 11:40:20 +0200 | poscat | (~poscat@user/poscat) (Remote host closed the connection) |
2025-06-10 11:37:42 +0200 | poscat | (~poscat@user/poscat) poscat |
2025-06-10 11:37:21 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) |
2025-06-10 11:36:58 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) (Remote host closed the connection) |
2025-06-10 11:34:30 +0200 | poscat | (~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 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) |
2025-06-10 11:31:24 +0200 | sabathan2 | (~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 +0200 | loreto | (~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 +0200 | prdak | (~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 +0200 | ChanServ | +v haskellbridge |
2025-06-10 11:27:45 +0200 | haskellbridge | (~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 +0200 | sabathan2 | (~sabathan@amarseille-159-1-12-107.w86-203.abo.wanadoo.fr) |