Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Hans Aberg
On 21 Mar 2009, at 01:10, Brandon S. Allbery KF8NH wrote: On 2009 Mar 20, at 17:02, Hans Aberg wrote: Therefore, as mentioned before, it might be best to install the GHC binaries and install libraries like Gtk+ from MacPorts. There is also Intel Gtk+ that binds directly to Aqua, the This

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Duncan Coutts
On Fri, 2009-03-20 at 14:10 -0400, Jeff Heard wrote: cabal-install works for me. The one thing that would be REALLY REALLY nice (and I'm cc-ing Duncan on this) is a .dmg for Gtk2Hs on Mac OS X. I'm sorry I can't directly help with this. I have no access to any hardware running OS X. I presume

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Duncan Coutts
On Fri, 2009-03-20 at 15:22 -0400, Jeff Heard wrote: As this continues to build, I guess the issue for me, and I'm willing to help with it, is trying to figure out how to redistribute programs written with gtk2hs. on Windows, people can just install the gtk2hs libraries via the installer --

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Paul Adams
Ross == Ross Mellgren rmm-hask...@z.odi.ac writes: Ross While there is not a .dmg for Gtk2Hs, you can use a .dmg Ross installed GHC with a .dmg installed Gtk, and then build Ross gtk2hs straight on top of that, without having to deal with Ross the dual-GHC macports mess..

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
I tried making this work, but librsvg requires pango, and pango is a huge pain in the ass -- I managed to get the whole thing to compile, but now it can't find any fonts, apparently due to some dynaloading issues. I think if you need any of the extended modules (e.g. svgcairo, gl) that

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
Minor correction -- pango in general is installed with the .DMG of Gtk... it's pangoft2 (the freetype2 bindings) that librsvg requires and aren't provided. -Ross On Mar 21, 2009, at 12:35 PM, Ross Mellgren wrote: I tried making this work, but librsvg requires pango, and pango is a huge

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Adams
If I try this, pango fails to compile with lots of error messages about error: macro names must be identifiers. I think I've seen this before - some well-known Mac OSX problem? (I'm a linux man myself - so I'm not used to the mac) 2009/3/21 Ross Mellgren rmm-hask...@z.odi.ac: I tried making

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
I didn't get any errors like that (nor do I remember ever having them), though if you want to paste them here maybe I can help with them. -Ross On Mar 21, 2009, at 1:27 PM, Colin Adams wrote: If I try this, pango fails to compile with lots of error messages about error: macro names must be

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Adams
In file included from ../pango/pango.h:31, from pango-impl-utils.h:28, from fonts.c:30: ../pango/pango-enum-types.h:12:9: error: macro names must be identifiers ../pango/pango-enum-types.h:14:9: error: macro names must be identifiers

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
(back to the list) Answers inline: On Mar 21, 2009, at 2:42 PM, Colin Adams wrote: Yes, that was the problem, and swapping the PATH order does the trick. Thanks. no prob. I must still have the macports stuff installed. Can you tell me how to get rid of it? if you really want to get rid

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Adams
OK - I added the --with-user-pkginfo flag. It nearly all works now - but still no svgcairo - ./configure doesn't find it. 2009/3/21 Ross Mellgren rmm-hask...@z.odi.ac: (back to the list) Answers inline: On Mar 21, 2009, at 2:42 PM, Colin Adams wrote: Yes, that was the problem, and swapping

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
Did the configure for gtk2hs claim that it was going to build svgcairo? If something is wrong with the librsvg install, it won't. -Ross On Mar 21, 2009, at 4:49 PM, Colin Adams wrote: OK - I added the --with-user-pkginfo flag. It nearly all works now - but still no svgcairo - ./configure

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Adams
It didn't. 2009/3/21 Ross Mellgren rmm-hask...@z.odi.ac: Did the configure for gtk2hs claim that it was going to build svgcairo? If something is wrong with the librsvg install, it won't. -Ross On Mar 21, 2009, at 4:49 PM, Colin Adams wrote: OK - I added the --with-user-pkginfo flag. It

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Colin Adams
And the reason is that librsvg fails to find cairo, pangocairo and cairo-png. Where is it supposed to find them? 2009/3/21 Colin Adams colinpaulad...@googlemail.com: It didn't. 2009/3/21 Ross Mellgren rmm-hask...@z.odi.ac: Did the configure for gtk2hs claim that it was going to build

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-21 Thread Ross Mellgren
Should be from pkg-config path, make sure your PKG_CONFIG_PATH is set to include /Library/Frameworks/{GLib,Gtk,Cairo}.framework Also, I had a problem where it couldn't find libpng -- I had to add / usr/X11/lib/pkgconfig to my pkg-config path. -Ross On Mar 21, 2009, at 5:02 PM, Colin Adams

[Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Mark Spezzano
Hi, I’ve been thinking of changing over to an iMac from my crappy old PC running Windows Vista. Question: Does the iMac have good support for Haskell development? Question: What environment setups do people commonly use (e.g. Eclipse Xcode etc)? Question: Are there any caveats I

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Cristiano Paris
2009/3/20 Mark Spezzano mark.spezz...@chariot.net.au: Hi, I’ve been thinking of changing over to an iMac from my crappy old PC running Windows Vista. Question: Does the iMac have good support for Haskell development? Question: What environment setups do people commonly use (e.g. Eclipse

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jeff Heard
Critiano, despite that thread, yes, there is decent support for Haskell on Mac OS X. The main problem is that the ports system to install Gtk2Hs isn't terribly great, as in it mostly doesn't work, but if you're willing to get Gtk2Hs compiled on your own, then after that, I've found it to be

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Thomas Davie
On 20 Mar 2009, at 16:56, Mark Spezzano wrote: Hi, I’ve been thinking of changing over to an iMac from my crappy old PC running Windows Vista. Question: Does the iMac have good support for Haskell development? As good as, if not better than other platforms I've found, you get none of

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
tom.davie: Other than chose the graphics card carefully, an iMac will do you very well. Hope that helps. This is very useful. Could the Mac users add information (and screenshots?) to the OSX wiki page, http://haskell.org/haskellwiki/OSX

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Thomas Davie
On 20 Mar 2009, at 18:08, Don Stewart wrote: tom.davie: Other than chose the graphics card carefully, an iMac will do you very well. Hope that helps. This is very useful. Could the Mac users add information (and screenshots?) to the OSX wiki page,

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
tom.davie: On 20 Mar 2009, at 18:08, Don Stewart wrote: tom.davie: Other than chose the graphics card carefully, an iMac will do you very well. Hope that helps. This is very useful. Could the Mac users add information (and screenshots?) to the OSX wiki page,

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Thomas Davie
On 20 Mar 2009, at 18:46, Don Stewart wrote: tom.davie: On 20 Mar 2009, at 18:08, Don Stewart wrote: tom.davie: Other than chose the graphics card carefully, an iMac will do you very well. Hope that helps. This is very useful. Could the Mac users add information (and screenshots?) to

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
tom.davie: On 20 Mar 2009, at 18:46, Don Stewart wrote: tom.davie: On 20 Mar 2009, at 18:08, Don Stewart wrote: tom.davie: Other than chose the graphics card carefully, an iMac will do you very well. Hope that helps. This is very useful. Could the Mac users add information (and

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Martijn van Steenbergen
Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install available? Since GHC is written in Haskell, do you need to have another Haskell

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install available? Since GHC is written in Haskell, do you need to have another

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Miguel Mitrofanov
No, you don't. On 20 Mar 2009, at 21:03, Martijn van Steenbergen wrote: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install available?

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Martijn van Steenbergen
Don Stewart wrote: martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install available? Since GHC is written in Haskell, do you need to

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Donn Cave
Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install available? I would be wondering about OS-specific functionality. For example, it might be worth

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jason Dusek
2009/03/20 Mark Spezzano mark.spezz...@chariot.net.au: Question: Does the iMac have good support for Haskell development? Yes. I generally use the Mac binary of GHC and then install C libs with MacPorts. Question: What environment setups do people commonly use (e.g. Eclipse Xcode etc)?

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Ross Mellgren
While there is not a .dmg for Gtk2Hs, you can use a .dmg installed GHC with a .dmg installed Gtk, and then build gtk2hs straight on top of that, without having to deal with the dual-GHC macports mess.. http://www.haskell.org/haskellwiki/Gtk2hs#Using_the_GTK.2B_OS_X_Framework -Ross On Mar

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jeff Heard
That one doesn't work with OpenGL, however and won't in the forseeable future.Incidentally, just now doing a ports install gtk2hs gives me the following error on my brand new MacBook: $ sudo port install gtk2hs ... stuff happens normally ... then: opt/local/bin/ghc +RTS -RTS -c

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jeff Heard
Ah wait... I can't read. section 4.1.2 explains the macports installation. I'll try that. On Fri, Mar 20, 2009 at 2:56 PM, Jeff Heard jefferson.r.he...@gmail.com wrote: That one doesn't work with OpenGL, however and won't in the forseeable future.    Incidentally, just now doing a ports

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Ross Mellgren
Ah, true. Sorry, my mistake -- I forgot that wasn't supported with the framework version. -Ross On Mar 20, 2009, at 2:56 PM, Jeff Heard wrote: That one doesn't work with OpenGL, however and won't in the forseeable future.Incidentally, just now doing a ports install gtk2hs gives me the

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jeff Heard
As this continues to build, I guess the issue for me, and I'm willing to help with it, is trying to figure out how to redistribute programs written with gtk2hs. on Windows, people can just install the gtk2hs libraries via the installer -- although this does bork a little because it assumes you

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread David Leimbach
On Fri, Mar 20, 2009 at 11:06 AM, Don Stewart d...@galois.com wrote: martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just getting ghc. How do they get hold of new libraries and apps? Is cabal-install

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
Good to hear you're shipping graphical Haskell apps, Jefferson. Well done. We do have tools for packaging for various distros: * Mac OSX: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkbndl * Windows http://hackage.haskell.org/cgi-bin/hackage-scripts/package/bamse

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
dons: Good to hear you're shipping graphical Haskell apps, Jefferson. Well done. We do have tools for packaging for various distros: * Mac OSX: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkbndl * Windows

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread David Leimbach
On Fri, Mar 20, 2009 at 1:05 PM, David Leimbach leim...@gmail.com wrote: On Fri, Mar 20, 2009 at 11:06 AM, Don Stewart d...@galois.com wrote: martijn: Don Stewart wrote: Yes, anything that is relevant to the development experience on this platform. Remember: it is more than just

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Jeff Heard
Don, good to know; I hadn't checked for packaging tools outside of cabal in Hackage :) 2009/3/20 Don Stewart d...@galois.com: dons: Good to hear you're shipping graphical Haskell apps, Jefferson. Well done. We do have tools for packaging for various distros:     * Mac OSX:    

Re[2]: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Bulat Ziganshin
Hello Jeff, Friday, March 20, 2009, 10:22:35 PM, you wrote: As this continues to build, I guess the issue for me, and I'm willing to help with it, is trying to figure out how to redistribute programs written with gtk2hs. on Windows, people can just install the gtk2hs libraries via the

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Hans Aberg
On 20 Mar 2009, at 21:05, David Leimbach wrote: Since GHC is written in Haskell, do you need to have another Haskell compiler installed before GHC 6.10.1 can be installed through MacPorts? It bootstraps itself. ??? GHC does or MacPorts does. My experience was that you needed GHC to

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
bulat.ziganshin: Hello Jeff, Friday, March 20, 2009, 10:22:35 PM, you wrote: As this continues to build, I guess the issue for me, and I'm willing to help with it, is trying to figure out how to redistribute programs written with gtk2hs. on Windows, people can just install the gtk2hs

Re[2]: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Bulat Ziganshin
Hello Don, Saturday, March 21, 2009, 12:06:48 AM, you wrote: i distribute my gtk2hs program for windows and linux. no problems, i just included runtime libraries provided by gtk2hs team. it was with gtk2hs 0.9.12.1 though, may be they don't provided updated archive for newer gtk2hs versions?

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Don Stewart
bulat.ziganshin: Hello Don, Saturday, March 21, 2009, 12:06:48 AM, you wrote: i distribute my gtk2hs program for windows and linux. no problems, i just included runtime libraries provided by gtk2hs team. it was with gtk2hs 0.9.12.1 though, may be they don't provided updated archive for

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Miguel Mitrofanov
MacPort developers tweak sources into packages which can install by themselves. So one just types sudo port install ghc and it does the rest. Here is info about ghc: $ port info ghc ghc 6.8.3, Revision 1, lang/ghc (Variants: universal, darwin_6, darwin_7, darwin_8_powerpc, darwin_8_i386,

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Hans Aberg
On 20 Mar 2009, at 22:44, Miguel Mitrofanov wrote: Here is info about ghc: $ port info ghc ghc 6.8.3, Revision 1, lang/ghc (Variants: universal, darwin_6, darwin_7, darwin_8_powerpc, darwin_8_i386, darwin_9_powerpc, darwin_9_i386, no_opengl) http://haskell.org/ A bit out of date:

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Hans Aberg
On 20 Mar 2009, at 22:44, Miguel Mitrofanov wrote: A bit out of date: MigMit:~ MigMit$ port info ghc ghc @6.10.1, Revision 8 (lang, haskell) ...blah-blah... Maybe, your $(port version) is still 1.600? Yes, now it worked: $ port version Version: 1.700 $ port info ghc ghc @6.10.1, Revision 9

Re: [Haskell-cafe] Ease of Haskell development on OS X?

2009-03-20 Thread Brandon S. Allbery KF8NH
On 2009 Mar 20, at 17:02, Hans Aberg wrote: Therefore, as mentioned before, it might be best to install the GHC binaries and install libraries like Gtk+ from MacPorts. There is also Intel Gtk+ that binds directly to Aqua, the This won;t work as you expect: since there's a dependency on