Newest at the top
2025-04-11 00:57:38 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-04-11 00:56:16 +0200 | <lambdabot> | h (g (f i)) |
2025-04-11 00:56:14 +0200 | <EvanR> | > foldl (.) id [h, g, f] i |
2025-04-11 00:55:17 +0200 | <lambdabot> | with actual type ‘Expr’ |
2025-04-11 00:55:17 +0200 | <lambdabot> | • Couldn't match expected type ‘Expr -> Expr’ |
2025-04-11 00:55:17 +0200 | <lambdabot> | error: |
2025-04-11 00:55:16 +0200 | <EvanR> | > foldl (.) id [z, y, x, w] i |
2025-04-11 00:55:13 +0200 | <lambdabot> | error: Variable not in scope: initial |
2025-04-11 00:55:11 +0200 | <EvanR> | > foldl (.) id [z, y, x, w] initial |
2025-04-11 00:54:45 +0200 | <lambdabot> | • Perhaps you meant one of these: |
2025-04-11 00:54:45 +0200 | <lambdabot> | • Variable not in scope: t4 :: c -> c |
2025-04-11 00:54:45 +0200 | <lambdabot> | error: |
2025-04-11 00:54:44 +0200 | <EvanR> | > foldl (.) id [t4, t3, t2, t1] initial |
2025-04-11 00:53:24 +0200 | hattckory | (~hattckory@bras-base-toroon4524w-grc-30-70-27-118-207.dsl.bell.ca) (Ping timeout: 276 seconds) |
2025-04-11 00:52:00 +0200 | <EvanR> | the "" at the end is the initial input |
2025-04-11 00:50:16 +0200 | <EvanR> | foldl (.) id combines them "first task" first |
2025-04-11 00:48:11 +0200 | cheater | (~Username@user/cheater) (Quit: Going offline, see ya! (www.adiirc.com)) |
2025-04-11 00:48:02 +0200 | <EvanR> | operating on the beginning of this list is operating on the "last task" |
2025-04-11 00:47:46 +0200 | <lambdabot> | "Hello world!" |
2025-04-11 00:47:44 +0200 | <EvanR> | > let tasks = [(++ "!"), (++ "world"), (++ " "), (++ "Hello")] in foldl (.) id tasks "" |
2025-04-11 00:46:44 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 260 seconds) |
2025-04-11 00:43:22 +0200 | <Guest87> | Holy shit haskell playground is a thing now |
2025-04-11 00:41:51 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-04-11 00:41:45 +0200 | roconnor | (~quassel@rocq/roconnor) roconnor |
2025-04-11 00:40:31 +0200 | roconnor | (~quassel@rocq/roconnor) (Ping timeout: 265 seconds) |
2025-04-11 00:33:52 +0200 | <Guest87> | Thank you for feedback, adding those |
2025-04-11 00:32:57 +0200 | <EvanR> | yeah a type signature for addCont and addStep ok all top level definitions here would go a long way |
2025-04-11 00:31:46 +0200 | lxsameer | (~lxsameer@Serene/lxsameer) (Ping timeout: 252 seconds) |
2025-04-11 00:31:00 +0200 | <EvanR> | in addStep you use f but f is not introduced anywhere |
2025-04-11 00:30:45 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) (Ping timeout: 248 seconds) |
2025-04-11 00:30:44 +0200 | <Guest87> | Ah crap, this is what I get for trying to port non-pure code without a type checker |
2025-04-11 00:30:20 +0200 | <EvanR> | Right t2 seems to have a new string, but then you pass it into the recursive call where a function was supposed to be |
2025-04-11 00:29:54 +0200 | <haskellbridge> | <loonycyborg> honestly I'd recommend adding type annotations :P |
2025-04-11 00:29:15 +0200 | <EvanR> | though if you install GHC you would already know this |
2025-04-11 00:28:52 +0200 | <EvanR> | much less returning an Either |
2025-04-11 00:28:47 +0200 | <EvanR> | still, continue returns a Task, not a function to apply input to |
2025-04-11 00:28:13 +0200 | <Guest87> | https://paste.tomsmeding.com/4T0PUPHR |
2025-04-11 00:28:12 +0200 | <Guest87> | EvanR damn yea, the shadowing is real bad. Here is the full code without shadowing |
2025-04-11 00:27:29 +0200 | Square2 | (~Square@user/square) (Ping timeout: 260 seconds) |
2025-04-11 00:27:27 +0200 | <monochrom> | If there is a code reviewer who does not treat both equally, well, I guess that's why you're paid to appease an arbitrary code reviewer. |
2025-04-11 00:27:17 +0200 | <EvanR> | but if fixed maybe this addCont produces a sort of recursive "object" as in OOP. But only a single one, not adding anything to anything |
2025-04-11 00:26:35 +0200 | <monochrom> | list of length n is just as inefficient as function chain of length n. |
2025-04-11 00:26:03 +0200 | merijn | (~merijn@host-vr.cgnat-g.v4.dfn.nl) merijn |
2025-04-11 00:25:57 +0200 | <EvanR> | alright addCont takes what seems to be an error handler and a program name / input string. Then it calls continue but but continue doesn't return an Either as far as I can tell |
2025-04-11 00:25:27 +0200 | __monty__ | (~toonn@user/toonn) (Quit: leaving) |
2025-04-11 00:24:31 +0200 | <haskellbridge> | <loonycyborg> only a way to calculate them |
2025-04-11 00:24:25 +0200 | <haskellbridge> | <loonycyborg> you don't even have a list of tasks |
2025-04-11 00:24:12 +0200 | Square | (~Square4@user/square) Square |
2025-04-11 00:23:39 +0200 | <EvanR> | you are shadowing t twice in your code so it's hard to grok what is going on |
2025-04-11 00:22:35 +0200 | <EvanR> | step 0. write a proper question |