Hey Axel,
So I reinstalled everything using a prefix with no space, and that seemed to
rectify the problem. It's kind of strange that it won't accept a space, since cabal
installs everything at that location by default! Anyway, I can now install Pango. However, I'm still having problems with
gtk. The first problem that surfaced was an error complaining about the lack
of a function called
pixbuf_animation_new_from_file

I noticed malcolm mentioned that the name of the windows
function has _utf8 appended to it. I could only
find one reference to it, (in Graphics/UI/Gtk/Gdk/PixbufAnimation.chs)
I edited that in place and it seemed to get things moving again. However, installation
now fails with the following output:

Creating dist\build (and its parents)
c:\Users\James\Desktop\Dan\bin\HaskellPlatform_2009.2.0.2\bin\ghc.exe -package-name gtk-0.10.5 --make -hide-all-packages -no-user-package-conf -i -idist\build -i. -idist\build\autogen -Idist\build\autogen -Idist\build -Idist\build\autogen -Idist\build -I. -Ic:/devel/gtk/include/glib-2.0 -Ic:/devel/gtk/lib/glib-2.0/include -Ic:/devel/gtk/include/gtk-2.0 -Ic:/devel/gtk/lib/gtk-2.0/include -Ic:/devel/gtk/include/atk-1.0 -Ic:/devel/gtk/include/cairo -Ic:/devel/gtk/include/pango-1.0 -Ic:/devel/gtk/include/freetype2 -Ic:/devel/gtk/include -Ic:/devel/gtk/include/libpng14 -optP-DWIN32 -optP-DHAVE_NEW_CONTROL_EXCEPTION -optP-include -optPdist\build\autogen\cabal_macros.h -odir dist\build -hidir dist\build -stubdir dist\build -package array-0.2.0.0 -package base-4.1.0.0 -package cairo-0.10.5 -package containers-0.2.0.1 -package glib-0.10.5 -package haskell98-1.0.1.0 -package mtl-1.1.0.2 -package pango-0.10.5 -O -XForeignFunctionInterface Graphics.UI.Gtk Graphics.UI.Gtk.Multiline.Types Graphics.UI.Gtk.Types Graphics.UI.Gtk.General.DNDTypes Graphics.UI.GtkInternals Graphics.UI.Gtk.Abstract.Bin Graphics.UI.Gtk.Abstract.Box Graphics.UI.Gtk.Abstract.ButtonBox Graphics.UI.Gtk.Signals Graphics.UI.Gtk.Abstract.Container Graphics.UI.Gtk.Abstract.IMContext Graphics.UI.Gtk.Abstract.Misc Graphics.UI.Gtk.Abstract.Object Graphics.UI.Gtk.Abstract.Paned Graphics.UI.Gtk.Abstract.Range Graphics.UI.Gtk.Abstract.Scale Graphics.UI.Gtk.Abstract.Scrollbar Graphics.UI.Gtk.Abstract.Separator Graphics.UI.Gtk.Gdk.Pixmap Graphics.UI.Gtk.Gdk.Region Graphics.UI.Gtk.Abstract.Widget Graphics.UI.Gtk.ActionMenuToolbar.Action Graphics.UI.Gtk.ActionMenuToolbar.ActionGroup Graphics.UI.Gtk.ActionMenuToolbar.RadioAction Graphics.UI.Gtk.ActionMenuToolbar.ToggleAction Graphics.UI.Gtk.ActionMenuToolbar.UIManager Graphics.UI.Gtk.Builder Graphics.UI.Gtk.Buttons.Button Graphics.UI.Gtk.Buttons.CheckButton Graphics.UI.Gtk.Buttons.RadioButton Graphics.UI.Gtk.Buttons.ToggleButton Graphics.UI.Gtk.Gdk.Pixbuf Graphics.UI.Gtk.Cairo Graphics.UI.Gtk.Display.AccelLabel Graphics.UI.Gtk.Display.Image Graphics.UI.Gtk.Display.Label Graphics.UI.Gtk.Display.ProgressBar Graphics.UI.Gtk.Display.Statusbar Graphics.UI.Gtk.General.Enums Graphics.UI.Gtk.Display.StatusIcon Graphics.UI.Gtk.Embedding.Embedding Graphics.UI.Gtk.Embedding.Plug Graphics.UI.Gtk.Embedding.Socket Graphics.UI.Gtk.Entry.Editable Graphics.UI.Gtk.Entry.Entry Graphics.UI.Gtk.ModelView.Types Graphics.UI.Gtk.ModelView.CustomStore Graphics.UI.Gtk.ModelView.TreeModel Graphics.UI.Gtk.Entry.EntryCompletion Graphics.UI.Gtk.Entry.HScale Graphics.UI.Gtk.Entry.SpinButton Graphics.UI.Gtk.Entry.VScale Graphics.UI.Gtk.Gdk.Cursor Graphics.UI.Gtk.Gdk.Display Graphics.UI.Gtk.Gdk.Drawable Graphics.UI.Gtk.Gdk.Enums Graphics.UI.Gtk.Gdk.DrawWindow Graphics.UI.Gtk.Gdk.EventM Graphics.UI.Gtk.Gdk.Events Graphics.UI.Gtk.Gdk.GC Graphics.UI.Gtk.Gdk.Gdk Graphics.UI.Gtk.Gdk.Keys Graphics.UI.Gtk.Gdk.PixbufAnimation Graphics.UI.Gtk.Gdk.Screen Graphics.UI.Gtk.General.Selection Graphics.UI.Gtk.General.Clipboard Graphics.UI.Gtk.General.Drag Graphics.UI.Gtk.General.General Graphics.UI.Gtk.General.IconFactory Graphics.UI.Gtk.General.RcStyle Graphics.UI.Gtk.General.StockItems Graphics.UI.Gtk.General.Style Graphics.UI.Gtk.Layout.Alignment Graphics.UI.Gtk.Layout.AspectFrame Graphics.UI.Gtk.Layout.Expander Graphics.UI.Gtk.Layout.Fixed Graphics.UI.Gtk.Layout.HBox Graphics.UI.Gtk.Layout.HButtonBox Graphics.UI.Gtk.Layout.HPaned Graphics.UI.Gtk.Layout.Layout Graphics.UI.Gtk.Layout.Notebook Graphics.UI.Gtk.Layout.Table Graphics.UI.Gtk.Layout.VBox Graphics.UI.Gtk.Layout.VButtonBox Graphics.UI.Gtk.Layout.VPaned Graphics.UI.Gtk.MenuComboToolbar.CheckMenuItem Graphics.UI.Gtk.MenuComboToolbar.Combo Graphics.UI.Gtk.MenuComboToolbar.ComboBox Graphics.UI.Gtk.MenuComboToolbar.ComboBoxEntry Graphics.UI.Gtk.MenuComboToolbar.ImageMenuItem Graphics.UI.Gtk.MenuComboToolbar.Menu Graphics.UI.Gtk.MenuComboToolbar.MenuBar Graphics.UI.Gtk.MenuComboToolbar.MenuItem Graphics.UI.Gtk.MenuComboToolbar.MenuShell Graphics.UI.Gtk.MenuComboToolbar.MenuToolButton Graphics.UI.Gtk.MenuComboToolbar.OptionMenu Graphics.UI.Gtk.MenuComboToolbar.RadioMenuItem Graphics.UI.Gtk.MenuComboToolbar.RadioToolButton Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem Graphics.UI.Gtk.MenuComboToolbar.SeparatorToolItem Graphics.UI.Gtk.MenuComboToolbar.TearoffMenuItem Graphics.UI.Gtk.MenuComboToolbar.ToggleToolButton Graphics.UI.Gtk.MenuComboToolbar.Toolbar Graphics.UI.Gtk.MenuComboToolbar.ToolButton Graphics.UI.Gtk.MenuComboToolbar.ToolItem Graphics.UI.Gtk.Misc.Adjustment Graphics.UI.Gtk.Misc.Arrow Graphics.UI.Gtk.Misc.Calendar Graphics.UI.Gtk.Misc.DrawingArea Graphics.UI.Gtk.Misc.EventBox Graphics.UI.Gtk.Misc.HandleBox Graphics.UI.Gtk.Misc.IMMulticontext Graphics.UI.Gtk.Misc.SizeGroup Graphics.UI.Gtk.Misc.Tooltips Graphics.UI.Gtk.Misc.Viewport Graphics.UI.Gtk.ModelView Graphics.UI.Gtk.ModelView.CellLayout Graphics.UI.Gtk.ModelView.CellRenderer Graphics.UI.Gtk.ModelView.CellRendererCombo Graphics.UI.Gtk.ModelView.CellRendererPixbuf Graphics.UI.Gtk.ModelView.CellRendererProgress Graphics.UI.Gtk.ModelView.CellRendererText Graphics.UI.Gtk.ModelView.CellRendererToggle Graphics.UI.Gtk.ModelView.CellView Graphics.UI.Gtk.ModelView.IconView Graphics.UI.Gtk.ModelView.ListStore Graphics.UI.Gtk.ModelView.TreeDrag Graphics.UI.Gtk.ModelView.TreeModelFilter Graphics.UI.Gtk.ModelView.TreeModelSort Graphics.UI.Gtk.ModelView.TreeRowReference Graphics.UI.Gtk.ModelView.TreeSelection Graphics.UI.Gtk.ModelView.TreeSortable Graphics.UI.Gtk.ModelView.TreeStore Graphics.UI.Gtk.ModelView.TreeViewColumn Graphics.UI.Gtk.ModelView.TreeView Graphics.UI.Gtk.Multiline.TextBuffer Graphics.UI.Gtk.Multiline.TextTag Graphics.UI.Gtk.Multiline.TextIter Graphics.UI.Gtk.Multiline.TextMark Graphics.UI.Gtk.Multiline.TextTagTable Graphics.UI.Gtk.Multiline.TextView Graphics.UI.Gtk.Ornaments.Frame Graphics.UI.Gtk.Ornaments.HSeparator Graphics.UI.Gtk.Ornaments.VSeparator Graphics.UI.Gtk.Scrolling.HScrollbar Graphics.UI.Gtk.Scrolling.ScrolledWindow Graphics.UI.Gtk.Scrolling.VScrollbar Graphics.UI.Gtk.Selectors.ColorButton Graphics.UI.Gtk.Selectors.ColorSelection Graphics.UI.Gtk.Selectors.ColorSelectionDialog Graphics.UI.Gtk.Selectors.FileChooser Graphics.UI.Gtk.Selectors.FileChooserButton Graphics.UI.Gtk.Selectors.FileChooserDialog Graphics.UI.Gtk.Selectors.FileChooserWidget Graphics.UI.Gtk.Selectors.FileFilter Graphics.UI.Gtk.Selectors.FileSelection Graphics.UI.Gtk.Selectors.FontButton Graphics.UI.Gtk.Selectors.FontSelection Graphics.UI.Gtk.Selectors.FontSelectionDialog Graphics.UI.Gtk.Windows.AboutDialog Graphics.UI.Gtk.Windows.Dialog Graphics.UI.Gtk.Windows.Invisible Graphics.UI.Gtk.Windows.MessageDialog Graphics.UI.Gtk.Windows.Window Graphics.UI.Gtk.Windows.WindowGroup Graphics.UI.Gtk.Gdk.PixbufData Graphics.UI.Gtk.General.Structs Graphics.UI.Gtk.ModelView.Sequence Graphics.UI.Gtk.Abstract.ContainerChildProperties Graphics.UI.Gtk.General.Threading
[ 26 of 170] Compiling Graphics.UI.Gtk.Embedding.Embedding ( dist\build\Graphics\UI\Gtk\Embedding\Embedding.hs, dist\build\Graphics\UI\Gtk\Embedding\Embedding.o )

Graphics\UI\Gtk\Embedding\Embedding.hsc:41:17:
Not in scope: type constructor or class `SocketClass'

Graphics\UI\Gtk\Embedding\Embedding.hsc:43:29:
Not in scope: `unSocket'

Graphics\UI\Gtk\Embedding\Embedding.hsc:43:39:
Not in scope: `toSocket'
.\dist\setup\setup.exe configure --verbose=2 --ghc
--prefix=C:/gtk2hs/cabalized/Haskell --global --flags=deprecated
--constraint=array ==0.2.0.0 --constraint=base ==4.1.0.0 --constraint=cairo
==0.10.5 --constraint=containers ==0.2.0.1 --constraint=glib ==0.10.5
--constraint=haskell98 ==1.0.1.0 --constraint=mtl ==1.1.0.2 --constraint=pango
==0.10.5
Creating .\dist\setup (and its parents)
.\dist\setup\setup.exe build --verbose=2
cabal.exe: Error: some packages failed to install:
gtk-0.10.5 failed during the building phase. The exception was:
exit: ExitFailure 1

Afraid I have no idea on this one. Might it be related to the
earlier error mentioned by Malcolm? He said that _utf8 needs to
be appended in several places, but I only did it in one.
Any help much appreciated, I'm nearly there I think!
Dan

--- On Tue, 27/4/10, Axel Simon <Axel.Simon@in.tum.de> wrote:

From: Axel Simon <Axel.Simon@in.tum.de>
Subject: Re: [Gtk2hs-users] Installing cabalized gtk2hs
To: "Dan OKeeffe" <okeeffdb@yahoo.co.uk>
Cc: gtk2hs-users@lists.sourceforge.net
Date: Tuesday, 27 April, 2010, 16:31

Hi Dan,

On 27.04.2010, at 17:17, Dan OKeeffe wrote:

>
> Creating .\dist\setup (and its parents)
> .\dist\setup\setup.exe build --verbose=2
>
> The files exist at C\Program Files\Haskell\glib-0.10.5\ghc-6.10.4
> The only thing I can think of is that the path to glib used during the build is missing a space
> between Program and Files:
> C\ProgramFiles\Haskell\glib-0.10.5\ghc-6.10.4

Well, that's a very good observation! It's odd that some function somewhere strips the spaces from the path. Is it officially allowed to install into paths with spaces? If so, I obviously now need to fix something somewhere (either our c2hs or Setup.hs).

Cheers,
Axel.