Building the add-ons in libraries/...

2004-11-02 Thread Peter Simons
The CVS version of the libraries tree comes with all kinds
of neat and dangerously unstable code I'd like to use,
particularly the "arrows" subdirectory. Now I wonder: Is
there some "build.mk" magic I could perform to tell GHC to
build these libraries as part of my normal build? So that I
get them (and the documentation) installed automatically
when I rebuild GHC?

Peter


P. S.: And while I am at it ... the build currently fails
with this error on my machine:

  ==fptools== make all -wr;
   in /usr/local/src/ghc-current/happy/doc
  
  rm -f -rf happy/
  /usr/bin/xsltproc --stringparam base.dir happy/ \
  --stringparam use.id.as.filename 1 \
  --stringparam html.stylesheet fptools.css \
  --stringparam toc.section.depth 3 --stringparam section.autolabel 1 \
  --stringparam section.label.includes.component.label 1   \
  /html/chunk.xsl happy.xml
  warning: failed to load external entity "/html/chunk.xsl"
  cannot parse /html/chunk.xsl
  make[2]: *** [happy/index.html] Error 4
  make[1]: *** [all] Error 1
  make[1]: Leaving directory `/usr/local/src/ghc-current/happy'
  make: *** [/usr/local/src/ghc-current/happy/src/happy-inplace] Error 2
  make: *** Deleting file `/usr/local/src/ghc-current/happy/src/happy-inplace'

Looks like there is a definition path missing somewhere.

___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Re: GHCI and readline package

2004-11-02 Thread Sigbjorn Finne
The instructions below refer to a slightly older version of
mingw -- to have it work with the one that's bundled with
6.2.2, substitute "strcasecmp.o strncasecmp.o" for
"string_old.o".
--sigbjorn
- Original Message - 
From: "Sigbjorn Finne" <[EMAIL PROTECTED]>
To: "Wassell, Mark P (GE Energy)" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 01, 2004 20:30
Subject: Re: GHCI and readline package


You can make 'readline' load with GHCi 6.2.2 with
just a little bit of effort -- try the following:
  # any old temporary working directory will do
  bash$ mkdir c:/tmp/hack bash$ cd c:/tmp/hack
  # assuming you've install 6.2.2 in c:/ghc/ghc-6.2.2
  bash$ c:/ghc/ghc-6.2.2/bin/ar x \
 c:/ghc/ghc-6.2.2/gcc-lib/libmoldname.a string_old.o
  bash$ c:/ghc/ghc-6.2.2/gcc-lib/ld --whole-archive \
  -r -x -o readline.o c:/ghc/ghc-6.2.2/gcc-lib/libreadline.a \
  string_old.o
  bash$ cp readline.o c:/ghc/ghc-6.2.2/
  # you may now delete the temp dir.
Next, manually edit your c:/ghc/ghc-6.2.2/package.conf,
editing the "readline" package's extra_libraries field to:
   extra_libraries = ["readline", "advapi32"],
Save the changes & you should be ready to go.
--sigbjorn
 - Original Message - 
From: "Wassell, Mark P (GE Energy)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 01, 2004 19:34
Subject: GHCI and readline package


Hi,
I'm having a problem running ghci and loading the readline package on
WindowsXP. C:\Software\haskell\ghc622\bin>ghci -package readline
ghci -package readline
  ___ ___ _
 / _ \ /\  /\/ __(_)
/ /_\// /_/ / /  | |  GHC Interactive, version 6.2.2, for Haskell 98.
/ /_\\/ __  / /___| |  http://www.haskell.org/ghc/
\/\/ /_/\/|_|  Type :? for help.
Loading package base ... linking ... done.
Loading package readline ... linking ... 
C:/Software/haskell/ghc622/HSreadline.o: unknown symbol
`_rl_redisplay_function'
ghc.exe: unable to load package `readline'

I have seen the follow in the user guide:
"For some reason, Mingw ships with the readline library, but not with the
readline headers. As a result, GHC (like Hugs) does not use readline for
interactive input on Windows. You can get a close simulation by using an
emacs shell buffer!"
but I assume I need readline as util needs it and util is needed by data
which is needed by wxcore.
Cheers
Mark
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users 
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


GHC 6.2.2 on Linux with glibc2.2

2004-11-02 Thread George Russell
I've put a compiled version of ghc6.2.2 for Linux machines still using glibc2.2
on
   http://www.informatik.uni-bremen.de/~ger/ghc
In fact it should work on glibc2.3 as well, thanks to a minor hack from
Christian Maeder.
Documentation is not complete, but does at least include HTML.
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users