Newest at the top
2024-11-05 16:30:56 +0100 | <haskellbridge> | <hellwolf> again, I'd probably start with what do you want to achieve, a lot of safe options will get you quite far in Haskell |
2024-11-05 16:30:01 +0100 | <haskellbridge> | <hellwolf> e.g. |
2024-11-05 16:30:00 +0100 | <haskellbridge> | <hellwolf> stuff from Foreign.Marshal.Array |
2024-11-05 16:29:12 +0100 | <l-Shane-l> | and import Foreign.Ptr maybe? |
2024-11-05 16:29:12 +0100 | <l-Shane-l> | {-# LANGUAGE ForeignFunctionInterface #-} |
2024-11-05 16:27:41 +0100 | merijn | (~merijn@77.242.116.146) merijn |
2024-11-05 16:27:27 +0100 | <Leonard26> | I'm a bit concerned of the consequences of unsafe stuff, I think you mean unsafePerformIO? |
2024-11-05 16:26:45 +0100 | <Leonard26> | https://hackage.haskell.org/package/strict-mvar |
2024-11-05 16:26:45 +0100 | <Leonard26> | It tells me that the package is deprecated in favour of another. |
2024-11-05 16:25:42 +0100 | <haskellbridge> | <hellwolf> unless you want to touch some unsafe stuff. |
2024-11-05 16:25:07 +0100 | <haskellbridge> | <hellwolf> IO MVar? |
2024-11-05 16:23:03 +0100 | <Leonard26> | I'm not sure how it is even called in C, I've only learned Haskell up so far, from what I understand it's some type of static variable? |
2024-11-05 16:23:03 +0100 | <Leonard26> | static GstElement *cur_effect; |
2024-11-05 16:23:02 +0100 | <Leonard26> | Particularly I am interested in reproducing this piece of code |
2024-11-05 16:23:02 +0100 | <Leonard26> | Hello! =D I was wondering if in Haskell there is a way to simulate pointers like in C/C++? |
2024-11-05 16:21:38 +0100 | merijn | (~merijn@77.242.116.146) (Ping timeout: 245 seconds) |
2024-11-05 16:19:37 +0100 | Leonard26 | (~Leonard26@49.236.10.26) |
2024-11-05 16:16:54 +0100 | longlongdouble | (~longlongd@2405:201:5c16:135:7459:cd00:c885:3805) (Read error: Connection reset by peer) |
2024-11-05 16:12:13 +0100 | alp | (~alp@2001:861:e3d6:8f80:86cd:f9bc:2fcc:950e) (Remote host closed the connection) |
2024-11-05 16:06:00 +0100 | benkard | mulk |
2024-11-05 16:06:00 +0100 | mulk | (~mulk@pd95146e9.dip0.t-ipconnect.de) (Ping timeout: 246 seconds) |
2024-11-05 16:05:24 +0100 | benkard | (~mulk@pd95146e9.dip0.t-ipconnect.de) mulk |
2024-11-05 15:49:57 +0100 | misterfish | (~misterfis@31-161-39-137.biz.kpn.net) (Ping timeout: 248 seconds) |
2024-11-05 15:49:31 +0100 | Guest12 | (~Guest12@31.154.179.218) (Ping timeout: 256 seconds) |
2024-11-05 15:49:26 +0100 | lxsameer | (~lxsameer@Serene/lxsameer) (Ping timeout: 265 seconds) |
2024-11-05 15:48:13 +0100 | SlackCoder | (~SlackCode@64-94-63-8.ip.weststar.net.ky) SlackCoder |
2024-11-05 15:48:10 +0100 | euleritian | (~euleritia@dynamic-176-006-148-028.176.6.pool.telefonica.de) |
2024-11-05 15:44:36 +0100 | euleritian | (~euleritia@ip4d16fc38.dynamic.kabel-deutschland.de) (Ping timeout: 265 seconds) |
2024-11-05 15:43:05 +0100 | <iphy> | But thanks, I'll try that |
2024-11-05 15:43:00 +0100 | <iphy> | Good question, I haven't checked the versions |
2024-11-05 15:42:07 +0100 | SlackCoder | (~SlackCode@64-94-63-8.ip.weststar.net.ky) (Ping timeout: 264 seconds) |
2024-11-05 15:32:45 +0100 | <tomsmeding> | my conjecture is that 9.6 changed its handling of quantified constraints, in particular the one in the superclass list of GEq1 https://hackage.haskell.org/package/transformers-compat-0.7.2/docs/Data-Functor-Classes-Generic-In… |
2024-11-05 15:29:37 +0100 | <tomsmeding> | iphy: compiles for me if I add (Show, Read, Eq) to the first deriving clause |
2024-11-05 15:25:43 +0100 | Versality | (~Versality@user/Versality) (Remote host closed the connection) |
2024-11-05 15:22:59 +0100 | <tomsmeding> | iphy: is it the ghc version that makes the difference, or the version of some library? Are you using the same version of transformers-compat in both cases? |
2024-11-05 15:20:23 +0100 | <iphy> | this is the error https://www.irccloud.com/pastebin/VqT6CteH/error |
2024-11-05 15:19:30 +0100 | <iphy> | this is not working on ghc 9.6.5 anymore, but it works on 9.4.3. am I doing something wrong? is there something new I need to do for this? |
2024-11-05 15:18:50 +0100 | <iphy> | https://www.irccloud.com/pastebin/dwAsXj9Z/ |
2024-11-05 15:18:42 +0100 | <iphy> | oops, sorry |
2024-11-05 15:18:37 +0100 | <iphy> | deriving (Show1, Read1, Eq1) via FunctorClassesDefault (AnnotF attr) |
2024-11-05 15:18:36 +0100 | <iphy> | deriving (Functor, Generic, Generic1) |
2024-11-05 15:18:36 +0100 | <iphy> | data AnnotF attr a = Annot { attr :: attr, unAnnot :: a } |
2024-11-05 15:18:35 +0100 | <iphy> | import GHC.Generics (Generic, Generic1) |
2024-11-05 15:18:34 +0100 | <iphy> | import Data.Functor.Compose (Compose (..)) |
2024-11-05 15:18:34 +0100 | <iphy> | import Data.Functor.Classes.Generic (FunctorClassesDefault (..)) |
2024-11-05 15:18:33 +0100 | <iphy> | import Data.Functor.Classes (Eq1, Read1, Show1) |
2024-11-05 15:18:33 +0100 | <iphy> | import Data.Fix (Fix, hoistFix) |
2024-11-05 15:18:32 +0100 | <iphy> | ) where |
2024-11-05 15:18:31 +0100 | <iphy> | ( AnnotF (..) |
2024-11-05 15:18:31 +0100 | <iphy> | module Language.Cimple.Annot |