News for hackers. Stuff that matters.
Re:Thinking in Types by sgerrand on Friday May 02, 2014 @02:55PM (#7687432)
Have you looked at the Haskell QML bindings? They generally work for cross platform requirements.

http://hackage.haskell.org/package/hsqml-0.1.1/docs/Graphics...

Re:Thinking in Types by jarrett on Friday May 02, 2014 @03:01PM (#7687476)
Yes. It does not compile on my Mavericks machine. Same with every graphics package I've tried.
Re:Thinking in Types by komadori on Wednesday May 07, 2014 @08:19AM (#7709711)
I do try and make sure that HsQML works on Windows and MacOS in addition to Linux. Although, I admit I haven't tried MacOS 10.9 as my Mac is still running 10.8.

I don't think I've ever been contacted concerning issues with Windows or MacOS, which is probably indictative of the size of the user base combined with probability of any one person deciding to go to the effort. On the other hand, I have fixed genuine build failures for Linux users because the platform is diverse enough that it "worked on my system" but not theirs.

In any case, my contact details are on the HsQML Hackage page. If you'd like to send me the error message you're seeing, I'd be happy to try and help you get it working.

Re:Thinking in Types by dllthomas on Friday May 02, 2014 @03:08PM (#7687516)
Get in touch with the developers and work with them to get it building. Often times they don't have access to your platform, so just being that helps. Anything you can do on top of that is gravy.
Re:Thinking in Types by VMG on Friday May 02, 2014 @04:02PM (#7687802)
While what you suggest is reasonable and the right thing to do, it just highlights the original point. The state of UI bindings is pretty bad.
Re:Thinking in Types by dllthomas on Friday May 02, 2014 @04:57PM (#7688090)
I wasn't making any point. Fwiw, I have been able to meet my own (quite limited) gui needs in Haskell with gtk...

Edit: On reflection, I find your assertion a little strange here. Anecdotal failure to build on one particular setup doesn't seem like a particular highlighting of bad bindings.

Re:Thinking in Types by mokus on Saturday May 03, 2014 @12:47AM (#7689627)
I can add another anecdote. In almost 10 years now of using Haskell on Mac, Linux and Windows, I've never once had any success building any GUI binding for Mac OS, despite trying every one I could find (gtkhs included) at least once a year on many different OS/hardware combinations.

(unless you count HOC, but I never actually got it working as-was - I brought it back from bit-rot on a couple occasions, adding ObjC 2 support and rewriting a fair chunk of the low-level stuff, but never did find the time to update the fragile header-parsing stuff for the actual Cocoa-binding generator)

Re:Thinking in Types by dllthomas on Saturday May 03, 2014 @11:15AM (#7691068)
Huh. It is sounding like there's an issue with Mac GUIs, then. Maybe the Mac/Haskell overlap is just too small? Both are small-to-niche... It would probably make sense to get a group oriented around getting that fixed up. For myself, I'm meeting my needs - and both 1) more GUI apps and 2) more Mac support are almost entirely orthogonal to them, so I'm not likely to participate.
Re:Thinking in Types by jarrett on Saturday May 03, 2014 @11:58AM (#7691217)
> Maybe the Mac/Haskell overlap is just too small?

Probably so. Though I would suggest that the neither one is a small niche in itself. Mac especially--it's the favored platform for every developer I know except one. Yes, it's less popular outside tech circles (probably due in part to the price).

Imagine this scenario: There are tons of Mac users who want to learn Haskell. They try it, but can't install libraries. The Haskell community never hears from them; one could say the system failed silently. Meanwhile, Linux works fine, and the Haskell-Linux community keeps growing.

So perhaps there's a self-reinforcing Linux-centric bias in the developer population.

Re:Thinking in Types by dllthomas on Saturday May 03, 2014 @12:10PM (#7691262)
I wouldn't at all say either is "a small niche." As niches go, they're both pretty large... I actually have no idea how the prevalence of Mac differs inside and outside tech circles. It's a decided minority in every case, with Windows still dominant and likely Linux still dominated (though I'm far less confident about that in dev circles than I used to be). For what it's worth, virtually every developer I know well enough to know what they prefer uses either Linux or Windows, with the exception of my mother who decided some few years back that Mac is "Unix enough" now. I expect that there's a lot of clustering, though, and neither of our experience represents a uniform sampling.

Your general point - that it's likely self-reinforcing - is certainly strong. I'd even expect it to be exacerbated a bit in this case by it being GUI things in particular showing issues, where (at the risk of stereotyping) there is probably a correlation between those who prefer a Mac and those who prefer a GUI.

Re:Thinking in Types by jarrett on Monday May 05, 2014 @11:39AM (#7699159)
> virtually every developer I know well enough to know what they prefer uses either Linux or Windows

Interesting. It must be clustered, as you say.

I use a Mac largely because there are a handful of professional apps that don't run on Linux. (Otherwise, I'd probably go with Mac hardware and a Linux OS.) Which implies that the demands of my industry is what pushed me (and perhaps the people I know) onto Macs.

> there is probably a correlation between those who prefer a Mac and those who prefer a GUI.

It's not so much that I personally prefer a GUI. (I don't, in general.) It's that I make a lot of software for other people, so GUIs aren't a matter of preference but of professional obligation. Also, there are certain applications I'd like to do where a GUI is pretty much the only sensible option: Design tools, certain types of games, etc.

Re:Thinking in Types by jarrett on Friday May 02, 2014 @03:29PM (#7687629)
Sometimes I do. Often, if a Haskell package doesn't have a Github repo, I don't know how to contact the developers or submit a bug report. Is there a standard place on Hackage or in ghc-pkg where one can find that info?
Re:Thinking in Types by dllthomas on Friday May 02, 2014 @03:50PM (#7687732)
"Is there a standard place on Hackage or in ghc-pkg where one can find that info?"

Both! It's in the ghc-pkg dump output, though there's doubtless a better way at getting at that. As for Hackage, if you just pare the above link back to https://hackage.haskell.org/package/hsqml you'll find package meta-info which includes:

    Author	Robin KAY
    Maintainer	[email protected]
    Home page	http://www.gekkou.co.uk/software/hsqml/
    Source repository	head: darcs get http://hub.darcs.net/komadori/HsQML/
Re:Thinking in Types by codygman on Saturday May 03, 2014 @03:44AM (#7690001)
I'll try installing QML on mavericks tomorrow and debugging it. Feel free to list anymore that failed to compile for you and I'll try to do the same for those.
Re:Thinking in Types by creichert on Saturday May 03, 2014 @09:22AM (#7690654)
Have you tried using cabal sandboxes to work around your build issues?
Re:Thinking in Types by creichert on Saturday May 03, 2014 @09:26AM (#7690666)
The QML bindings are great! They are still fairly new and lacking some features but it seems as though Qt5 support was just added.