[Haskell-cafe] State of play with Haskell-Cocoa (Objective-C) bindings?

2011-07-31 Thread Luke Evans
I'm planning to start an Objective-C/Cocoa project and would like to write it in Haskell as much as possible. Of course, I can contrive to split the project into app logic (Haskell) and UI (Objective-C) with some sort of minimal interface between them; possibly just plain old C FFI. However,

[Haskell-cafe] Enumerating functions at runtime

2013-03-23 Thread Luke Evans
I'm curious about using Haskell for metaprogramming. It looks like I can dynamically compile, load and run some Haskell with the plugins package. Actually I've briefly tried this and it seems to work for some simple cases at least. Now I would like to be able to enumerate precompiled public

[Haskell-cafe] llvm-3.0.1.0 installation on Mac

2013-04-07 Thread Luke Evans
I'm trying to get LLVM 3.0 installed and then have the llvm-3.0.1.0 package install and bind against it with cabal. I'm on a recent 64 bit Mac which shows up in various messages like: Target platform inferred as: x86_64-apple-darwin I was advised on the Haskell IRC channel to install a 3.0

Re: [Haskell-cafe] llvm-3.0.1.0 installation on Mac

2013-04-07 Thread Luke Evans
-07, at 8:39 PM, Luke Evans l...@eversosoft.com wrote: My cabal-fu is extremely weak, so I'll plug on and see if I can figure out how cabal's analysis/build might be going wrong here. I'd be very grateful for any clues though! -- Luke

Re: [Haskell-cafe] llvm-3.0.1.0 installation on Mac

2013-04-07 Thread Luke Evans
, Brandon Allbery allber...@gmail.com wrote: On Mon, Apr 8, 2013 at 12:10 AM, Luke Evans l...@eversosoft.com wrote: Unfortunately, it looks like my cabal build failure occurs in a temporary and very short-lived directory. So presumably the dodgy FFI gets copied into there from elsewhere. I

Re: [Haskell-cafe] llvm-3.0.1.0 installation on Mac

2013-04-08 Thread Luke Evans
OK, thanks again. I'll give that a whirl. On 2013-04-08, at 7:48 AM, Brandon Allbery allber...@gmail.com wrote: On Mon, Apr 8, 2013 at 1:32 AM, Luke Evans l...@eversosoft.com wrote: Unfortunately, it looks like /Library/Frameworks/GHC.framework/Versions/7.4.2-x86_64/usr/lib/ghc-7.4.2

Re: [Haskell-cafe] llvm-3.0.1.0 installation on Mac [RESOLVED]

2013-04-08 Thread Luke Evans
for which a 6 month cycle is a very long time. Another similar one is that I found that yesod's development server doesn't run on 7.4.2 due to a bug (allegedly long since fixed). On 2013-04-08, at 10:08 AM, Luke Evans l...@eversosoft.com wrote: OK, thanks again. I'll give that a whirl

[Haskell-cafe] Which generic zipper?

2013-04-10 Thread Luke Evans
It's sometimes difficult to figure out a good choice when you're searching for a new feature/library (when you go beyond safety of the HP). I'm looking for a generic zipper to (hopefully) navigate over an AST… so a hetrogeneous structure. It's probably sufficient to make this traversable in a

Re: [Haskell-cafe] Which generic zipper?

2013-04-10 Thread Luke Evans
Hmm, in my naivety I failed to notice that the 'official' GHC.Generics are completely different to SYB on which syz is built. Classic case of reading the same words/names and assuming they're exactly the same thing. Maybe it's not that hard to rewrite syz in terms of GHC.Generics.Generic (I'll

Re: [Haskell-cafe] Which generic zipper? [RESOLVED]

2013-04-11 Thread Luke Evans
Thanks Roman. I'll probably go with Data.Data then. Certainly, I'm not looking for any significant distractions and I'll heed your cautionary note. I read that GHC.Generics is fit and fast in comparison to SYB, but that's not really a big concern for me at the moment. I just fell in to

[Haskell-cafe] Using Quick Check generators for getting arbitrary value streams

2013-10-07 Thread Luke Evans
I was hoping I could use Arbitrary instances to generate streams of values for test data. It looks like you're not 'supposed' to be trying this, other than for the specific purpose of then testing some properties on these streams within Quick Check itself. I'm looking for something like the