[Haskell-iPhone] Objective C bindings?

Manuel M T Chakravarty chak at cse.unsw.edu.au
Fri Apr 25 11:10:50 UTC 2014


The problem with language-c-inline for iOS at the moment is that it relies on TH in a very essential way.

Manuel


Jake Brownson <jbrownson at gmail.com>:
> Thanks for the tips guys, and thanks to Luke for his work in this area!
> 
> I came across ObjectiveHaskell but got the idea that it was more for
> calling HS from ObjectiveC, but I think I got the wrong idea looking
> closer. The samples all still have a bunch of .m files in with them.
> It'd be awesome to purely have .hs files which I believe HOC would
> allow.
> 
> However as I was searching for ObjectiveHaskell on hackage I came
> across the language-inline-c project which is still in development,
> but looks really interesting:
> https://github.com/mchakravarty/language-c-inline/wiki/Motivation
> 
> It uses quaiquoting to let you write objective-c or c directly inline
> in a .hs file and it'll compile it and hook up all the values
> automatically (or that's what I get from reading the website anyway,
> haven't tried it yet).
> 
> On Wed, Apr 23, 2014 at 11:25 PM, Luke Iannini <lukexipd at gmail.com> wrote:
>> Yo Jake,
>> Yeah, what Max said. Sigh, I've done this (updated OH to use Max's static
>> lib support, fixed a bunch of bugs, and other things) an have been promising
>> to clean it up enough to release for quite some time. The yucky bit is that
>> I manually converted it to strip out the Template Haskell usage which both
>> makes it much uglier and not nearly as nice to use. But it works, and that's
>> something : ), so I'll get going.
>> 
>> I think we could design something even nicer with Type Families sometime
>> that didn't require TH.
>> 
>> Cheers
>> Luke
>> 
>> 
>> On Wed, Apr 23, 2014 at 9:27 PM, Maxwell Swadling
>> <maxwellswadling at gmail.com> wrote:
>>> 
>>> Hello!
>>> 
>>> I think ObjectiveHaskell is a more practical choice today than HOC.
>>> 
>>> ObjectiveHaskell could be cleaned up to use the new GHC 7.8 features,
>>> which will simplify the build process.
>>> 
>>> https://github.com/jspahrsummers/ObjectiveHaskell/tree/reboot
>>> 
>>> Try it out.
>>> 
>>> __END__
>>> Maxwell Swadling
>>> 
>>>> On 23 Apr 2014, at 11:25 am, Jake Brownson <jbrownson at gmail.com> wrote:
>>>> 
>>>> https://code.google.com/p/hoc/
>>>> 
>>>> Is anybody aware of any efforts to revive the HOC project that
>>>> provides Objective-C bindings for Haskell? Or any alternatives to it?
>>>> It seems like it would be a great complement to the iOS cross
>>>> compiler. I've started reading through the code to see what it might
>>>> take to get them working w/ recent GHCs. the last commit on the google
>>>> code project was 2010.
>>>> 
>>>> When I do the "runhaskell Setup.hs build" from the installation
>>>> instructions I get a few things like this:
>>>> 
>>>> "Unacceptable argument type in foreign declaration: CInt"
>>>> 
>>>> which seems to be explained by this as due to a change in FFI at some
>>>> point:
>>>> http://haskell.1045720.n5.nabble.com/zlib-build-failure-on-recent-GHC-td4971516.html
>>>> 
>>>> I'm just starting to dig into this so maybe there's a good reason
>>>> nobody else has. I'm pretty new to Haskell, but I love the idea of
>>>> making native GUIs for OS X and eventually iOS.
>>>> _______________________________________________
>>>> iPhone mailing list
>>>> iPhone at haskell.org
>>>> http://www.haskell.org/mailman/listinfo/iphone
>>> _______________________________________________
>>> iPhone mailing list
>>> iPhone at haskell.org
>>> http://www.haskell.org/mailman/listinfo/iphone
>> 
>> 
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone



More information about the iPhone mailing list