On Nov 15, 2009, at 11:42 , Malthe Jørgensen wrote:

which gives a bunch of warnings, all looking like this
'ld: warning: in /opt/local/lib/libSDL.dylib, file is not of required
architecture'
with 'libSDL.dylib' replaced with various *.a and *.dylib files

This is ld saying it can only find the 64-bit versions of libraries; ghc currently requires the 32-bit libraries.  You need to rebuild MacPorts with support for both i386 and x86-64 architectures:

add to /opt/local/etc/macports.conf:

  universal_archs i386 x86_64

add to /opt/local/etc/variants.conf

  +universal

then follow the directions at http://trac.macports.org/wiki/Migration to rebuild MacPorts.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH