and then

cabal install soegtk?

Michael

--- On Mon, 5/30/11, John Lato <jwlato@gmail.com> wrote:

From: John Lato <jwlato@gmail.com>
Subject: Re: [Haskell-cafe] Haskell School of Expression (graphics)
To: "michael rice" <nowgate@yahoo.com>
Cc: haskell-cafe@haskell.org, "Andrew Coppin" <andrewcoppin@btinternet.com>
Date: Monday, May 30, 2011, 8:48 AM

From: michael rice <nowgate@yahoo.com>

I think this is fixed in the gtk2hs source tree, have you tried building from the repo?

> cabal install gtk2hs-buildtools
> cd gtk2hs
> chmod +x bootstrap.sh
> ./bootstrap.sh
 
John Lato


Is this worth chasing down? I loaded the Haskell Platform, which I assume has some graphics capability (Cairo?). Maybe my time would be better spent getting familiar with that?

Michael
--- On Sun, 5/29/11, Andrew Coppin <andrewcoppin@btinternet.com> wrote:

From: Andrew Coppin <andrewcoppin@btinternet.com>
Subject: Re: [Haskell-cafe] Haskell School of Expression (graphics)
To: haskell-cafe@haskell.org
Date: Sunday, May 29, 2011, 9:45 AM

On 28/05/2011 08:06 PM, michael rice wrote:

> /tmp/glib-0.11.22906/glib-0.11.2/Gtk2HsSetup.hs:190:70:
> Couldn't match expected type `[PackageDB]'
> with actual type `PackageDB'
> Expected type: PackageDBStack
> Actual type: PackageDB
> In the sixth argument of `registerPackage', namely `packageDb'
> In the expression:
> registerPackage
> verbosity installedPkgInfo pkg lbi inplace packageDb
> cabal: Error: some packages failed to install:
> cairo-0.11.1 failed during the configure step. The exception was:
> ExitFailure 1

There's some sort of glitch with Gtk2hs (on which SOE depends) that causes it to not build with GHC 7.x (?) unless you hand-edit some of the files (!)

http://hackage.haskell.org/trac/gtk2hs/ticket/1203