Newest at the top
2024-10-10 17:25:37 +0200 | ubert | (~Thunderbi@178.165.187.120.wireless.dyn.drei.com) (Ping timeout: 248 seconds) |
2024-10-10 17:24:53 +0200 | <dminuoso> | And then the indention went back to the left |
2024-10-10 17:24:32 +0200 | <dminuoso> | You are missing an equals sign somewhere there. The parser is complaining because it's still looking for an equals sign, found a line break... |
2024-10-10 17:23:45 +0200 | <dminuoso> | Let bindings (in do-expressions) are of the form `let p = e` not `let p e` |
2024-10-10 17:21:40 +0200 | <Leonard26> | https://paste.tomsmeding.com/X8qXy2tR |
2024-10-10 17:20:52 +0200 | <dminuoso> | Ah, though geekosaur's initial impression is correct. |
2024-10-10 17:19:30 +0200 | <geekosaur> | the one you weere just asked to use, in the topic? |
2024-10-10 17:19:22 +0200 | <dminuoso> | http://paste.tomsmeding.com works great |
2024-10-10 17:19:13 +0200 | <Leonard26> | Oh, I see. Is there a website I can use to do that then? |
2024-10-10 17:18:48 +0200 | <dminuoso> | Well, not just that, you've very likely cut off the parts that explain the problem. :-) |
2024-10-10 17:18:28 +0200 | <geekosaur> | you pointed to a GStreamer module, not to your code that uses it; you pasted that into the channel, which is generally not helpful as most IRC clients will make it a mess |
2024-10-10 17:18:21 +0200 | <dminuoso> | You have only linked to gi-gst on hackage, but not your own gtk-intro-twelve/app/Main.hs contents. |
2024-10-10 17:17:28 +0200 | <dminuoso> | Is my weechat acting up? I dont see a link to a pastie that contains your full code. |
2024-10-10 17:16:47 +0200 | <Leonard26> | I don't understand what you want me to do. Is the link I've provided not working? There's the whole module right there |
2024-10-10 17:15:06 +0200 | <dminuoso> | Generally when it comes to parse errors you cannot figure out, chances are there's some surrounding artifacts that change the theme. Intuitively Id say you're just not in a do-expression, but Ill wait for the pastie. |
2024-10-10 17:14:41 +0200 | gorignak | (~gorignak@user/gorignak) gorignak |
2024-10-10 17:14:14 +0200 | <dminuoso> | I'd just ask for the whole module to be pasted unmodified (see topic for a link to a website for snippets). |
2024-10-10 17:14:10 +0200 | gorignak | (~gorignak@user/gorignak) (Quit: quit) |
2024-10-10 17:13:44 +0200 | ash3en | (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Client Quit) |
2024-10-10 17:13:37 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) Lord_of_Life |
2024-10-10 17:12:49 +0200 | ash3en | (~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) ash3en |
2024-10-10 17:12:32 +0200 | <Leonard26> | You're right, but the default behaviour won't get me what I need :( |
2024-10-10 17:10:31 +0200 | <c_wraith> | that whole module looks like stuff you only interact with to customize behavior when defaults don't do the job |
2024-10-10 17:09:47 +0200 | <c_wraith> | I think you've likely wandered off into the weeds. |
2024-10-10 17:09:37 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) (Excess Flood) |
2024-10-10 17:09:04 +0200 | <Leonard26> | Yes I think it should be something like this as well `myActivateFunction decodeSinkPad decode = …` not sure what to put in there tho... |
2024-10-10 17:08:06 +0200 | <Leonard26> | It feels wrong as I've written it tho, you're right. But what am I supposed to write in it then? It just takes two values, a pad and its parent, and returns a Bool |
2024-10-10 17:07:40 +0200 | <geekosaur> | so why isn;t it doing that? It's just sitting there without a body, as far as I can tell. Shouldn't it be `myActivateFunction decodeSinkPad decode = …` for some `…`? |
2024-10-10 17:07:21 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) Lord_of_Life |
2024-10-10 17:06:31 +0200 | Lord_of_Life | (~Lord@user/lord-of-life/x-2819915) (Quit: Laa shay'a waqi'un moutlaq bale kouloun moumkine) |
2024-10-10 17:06:28 +0200 | <Leonard26> | It's this right here https://hackage.haskell.org/package/gi-gst-1.0.29/docs/GI-Gst-Callbacks.html#t:PadActivateFunction |
2024-10-10 17:06:06 +0200 | <Leonard26> | If I understand correctly, it's supposed to be returning a Bool value, True if it succeded in activating the pad, False if it failed. |
2024-10-10 17:03:23 +0200 | <geekosaur> | `myActivateFunction decodeSinkPad decode` what? that's an expression, not a definition. what is `myActivateFunction` supposed to be doing? |
2024-10-10 17:02:05 +0200 | <Leonard26> | What do you mean? |
2024-10-10 17:01:32 +0200 | <geekosaur> | it doesn't look written at all to me, it's just the LHS without an RTS? |
2024-10-10 16:59:12 +0200 | paddymahoney | (~paddymaho@pool-99-250-10-137.cpe.net.cable.rogers.com) |
2024-10-10 16:58:25 +0200 | <Leonard26> | I am guessing it is because I didn't write the myActivateFunction correctly. Could you help me out? =( |
2024-10-10 16:58:25 +0200 | <Leonard26> | | ^ |
2024-10-10 16:58:24 +0200 | <Leonard26> | 275 | Gst.padSetActivateFunctionFull decodeSinkPad activateFunction |
2024-10-10 16:58:24 +0200 | <Leonard26> | | |
2024-10-10 16:58:23 +0200 | <Leonard26> | parse error (possibly incorrect indentation or mismatched brackets) |
2024-10-10 16:58:23 +0200 | <Leonard26> | D:\stack-projects\gtk-intro-twelve\app\Main.hs:275:3: error: [GHC-58481] |
2024-10-10 16:58:22 +0200 | <Leonard26> | It is throwing this error |
2024-10-10 16:58:22 +0200 | <Leonard26> | Gst.padSetActivateFunctionFull decodeSinkPad activateFunction |
2024-10-10 16:58:21 +0200 | <Leonard26> | myActivateFunction decodeSinkPad decode |
2024-10-10 16:58:21 +0200 | <Leonard26> | let myActivateFunction :: PadActivateFunction |
2024-10-10 16:58:20 +0200 | <Leonard26> | Just decodeSinkPad <- Gst.elementGetStaticPad decode "sink" |
2024-10-10 16:58:20 +0200 | <Leonard26> | This is my code up so far |
2024-10-10 16:58:19 +0200 | <Leonard26> | https://hackage.haskell.org/package/gi-gst-1.0.29/docs/GI-Gst-Objects-Pad.html#v:padSetActivateFun… |
2024-10-10 16:58:19 +0200 | <Leonard26> | The type is supposed to later be used in conjunction with a function called padSetActivateFunctionFull |