2024/10/10

Newest at the top

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 +0200gorignak(~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 +0200gorignak(~gorignak@user/gorignak) (Quit: quit)
2024-10-10 17:13:44 +0200ash3en(~Thunderbi@2a03:7846:b6eb:101:93ac:a90a:da67:f207) (Client Quit)
2024-10-10 17:13:37 +0200Lord_of_Life(~Lord@user/lord-of-life/x-2819915) Lord_of_Life
2024-10-10 17:12:49 +0200ash3en(~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 +0200Lord_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 +0200Lord_of_Life(~Lord@user/lord-of-life/x-2819915) Lord_of_Life
2024-10-10 17:06:31 +0200Lord_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 +0200paddymahoney(~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
2024-10-10 16:58:18 +0200 <Leonard26> type PadActivateFunction = Gst.Pad -> Gst.Object -> IO Bool    as written in the bindings. But now I am stuck and don't know how to go forwards =L
2024-10-10 16:58:18 +0200 <Leonard26> The type is called PadActivateFunction, it serves as the name suggests to "activate" a certain element in the application. I have gotten as far as declaring this type with
2024-10-10 16:58:17 +0200 <Leonard26> https://hackage.haskell.org/package/gi-gst-1.0.29/docs/GI-Gst-Callbacks.html#t:PadActivateFunction
2024-10-10 16:58:17 +0200 <Leonard26> Hello! How are you today? :] I am trying to use the language bindings for Gstreamer, but I am stuck at trying to declare a certain type.
2024-10-10 16:55:13 +0200arahael(~arahael@user/arahael) (Ping timeout: 248 seconds)
2024-10-10 16:51:31 +0200comerijn(~merijn@77.242.116.146) (Quit: Lost terminal)
2024-10-10 16:50:22 +0200Sgeo(~Sgeo@user/sgeo) Sgeo
2024-10-10 16:49:59 +0200ljdarj(~Thunderbi@user/ljdarj) ljdarj
2024-10-10 16:43:21 +0200raehik(~raehik@rdng-25-b2-v4wan-169990-cust1344.vm39.cable.virginm.net) raehik
2024-10-10 16:43:02 +0200 <dminuoso> Your own code automatically teaches the idiom they are likely to encounter, the libraries you use, the GHC features you enable...
2024-10-10 16:42:52 +0200 <Square> Actually the rewrite is mostly done. The part that is left is integrating it into the existing java app.
2024-10-10 16:42:21 +0200 <dminuoso> So you're trying to rewrite a full fledged web application, backend and frontend, in Haskell?