9

I want to create a GUI application on OSX with Haskell. It mainly should be about drawing on a canvas. I tried the following options but none of them worked:

  • WX. It doesn't work well because of dependency on obsolete quicktime version. I can't compile with it and can't use it in ghci.
  • Gtk2hs. It involves very complicated install process which fails for me with homebrew (I tried the sequence on haskell.org wiki but it didn't work for me probably because of OSX10.8).

Are there any other options?

6
  • 1
    Have you tried gtk2hs with macports gtk+? That's always worked for me. You only want to use macports for gtk+ though, not any of the Haskell stuff. Commented Sep 12, 2012 at 23:31
  • 1
    I managed to configure wx so that it works well :-) Commented Sep 13, 2012 at 8:41
  • 1
    @KonstantinSolomatov: How did you manage to configure wx to avoid the quicktime problem? Commented Sep 13, 2012 at 15:52
  • 1
    @Conal I just reinstalled all the ws packages in cabal and it started to work fine. There are no errors about quicktime anymore. However, it still doesn't work from ghci. Commented Sep 13, 2012 at 19:27
  • 1
    @KonstantinSolomatov Thanks. What breaks in ghci? Commented Sep 14, 2012 at 17:07

1 Answer 1

2

If you're just drawing 2D shapes on a canvas, you could try gloss.

Sign up to request clarification or add additional context in comments.

1 Comment

The thing I need the most are good font metrics. OpenGL doesn't have them. However, the library is very nice. Thanks.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.