AW: Difficulties compiling hmake / HaXml

2001-03-29 Thread Lescher Christian

I recognized that in src/interpreter/Makefile there was still a reference to the posix 
package:

HFLAGS = $(shell $(LOCAL)fixghc $(GHCSYM) -fglasgow-exts \
 -package lang -package util -package posix $(READLINE) )

After removing "-package posix" and applying the change you mentioned, the compilation 
of hmake works now!
Many thanks!! - Now I may try to go on with building the HaXml tools.

Christian


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



Re: function over Array and UArray possible?

2001-03-29 Thread Marcin 'Qrczak' Kowalczyk

Thu, 29 Mar 2001 19:48:25 +0200, [EMAIL PROTECTED] 
<[EMAIL PROTECTED]> pisze:

> Is it possible to give a context, so that a function can have
> a signature which combines
> foo:: (Ix i) => Array i a -> Array i aand
> foo:: (Ix i) => UArray i a -> Uarray i a ?

Yes:
foo :: (IArray a e, Ix i) => a i e -> a i e

Use (!), (//), bounds, assocs, array etc. from module IArray (not Array).
They are overloaded over class IArray, which includes Array and UArray.

-- 
 __("<  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^  SYGNATURA ZASTÊPCZA
QRCZAK


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



RE: Difficulties compiling hmake / HaXml

2001-03-29 Thread Malcolm Wallace

> I tried to change the "configure" file as you described -- and
> after "./configure" and "make" I still get the same error message

Apologies.  My patch (and the description of the reason why 'hmake'
needed it) were completely bogus.  That will teach me to fix bugs
from memory rather than looking at the source code...

Looking more closely, the Posix library is in fact required by
hmake interactive (when built by ghc) for the use of the function
'getProcessID', which is used solely to generate unique temporary
filenames.

In src/interpreter/HmakeConfig.hs, in the section

#ifdef __GLASGOW_HASKELL__
import IOExts (unsafePerformIO)
import Posix (getProcessID)
#endif

try removing the line 'import Posix' and replacing it with something
trivial like 'getProcessID = return 3154' where the actual number
is arbitrary.

This should (finally) get 'hmake' working for you.  I will try to
discover an configuration mechanism to automate this for future
releases.

Thanks for your patience and persistence!
Regards,
Malcolm

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



function over Array and UArray possible?

2001-03-29 Thread andreas.marth

Hallo!

Is it possible to give a context, so that a function can have a signature which 
combines
foo :: (Ix i) => Array i a -> Array i aand
foo :: (Ix i) => UArray i a -> Uarray i a ?
at the moment I have a lot of functions foo and fooU which have the same body 
but
different type signatures. 

Thanks for any comments,
Andreas
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users



RE: Difficulties compiling hmake / HaXml

2001-03-29 Thread Reuben Thomas

> What can I do now? Is there another way to use HaXml on Win/Cygwin with GHC?

I'm still puzzled as to why you're not using HaXml as supplied with GHC, and
just building the tools from GHC's source. What am I missing?

-- 
http://sc3d.org/rrt/ | violence, n.  bravery for cowards


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



RE: Difficulties compiling hmake / HaXml

2001-03-29 Thread Lescher Christian

I tried to change the "configure" file as you described -- and after "./configure" and 
"make" I still get the same error message (see above).

What can I do now? Is there another way to use HaXml on Win/Cygwin with GHC?

Cheers, Christian


sh-2.04$ make
cd src/hmake;  make HC=ghc install
make[1]: Entering directory `/test-hmake/hmake-2.02/src/hmake'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/test-hmake/hmake-2.02/src/hmake'
cd src/interpreter;make HC=ghc install
make[1]: Entering directory `/test-hmake/hmake-2.02/src/interpreter'
/test-hmake/hmake-2.02/script/hmake -ghc HInteractive -d/test-hmake/hmake-2.02/t
argets/ix86-CYGWIN_NT-4.0/obj/interpreter

Fail: Can't find module Posix in
.
  Or in standard libraries at
/ghc/ghc-4.08.2/lib/imports/std
/ghc/ghc-4.08.2/lib/imports/data
/ghc/ghc-4.08.2/lib/imports/lang
/ghc/ghc-4.08.2/lib/imports/posix
/ghc/ghc-4.08.2/lib/imports/net
/ghc/ghc-4.08.2/lib/imports/num
/ghc/ghc-4.08.2/lib/imports/text
/ghc/ghc-4.08.2/lib/imports/util
/ghc/ghc-4.08.2/lib/imports/win32
/ghc/ghc-4.08.2/lib/imports/concurrent
  Asked for by: HmakeConfig.hs
[Check settings of -I or -P flags?]

Stop - hmake dependency error.
make[1]: *** [/test-hmake/hmake-2.02/lib/ix86-CYGWIN_NT-4.0/HInteractive.exe] Er
ror 1
make[1]: Leaving directory `/test-hmake/hmake-2.02/src/interpreter'
make: *** [targets/ix86-CYGWIN_NT-4.0/hmake_g] Error 2


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



Re: Compiling HDirect from CVS

2001-03-29 Thread Reuben Thomas

> > > > | Is "_imp___timezone_dll" a Haskell DLL, a missing Mingw lib,
>
> > >
> > > I think this is a problem with the version of gcc and the switches it
> > > expects; I've added -mwin32 and it seems to work. Try updating and
> rebuilding.
> >
> > ...and add -mwin32 after -mno-cygwin in the *installed compiler's (4.08.2,
> > presumably) driver script.
>
> Sadly, no luck at all.
>
> I went through every file in the CVS distribution and the ghc4.08.2 driver
> and added -mwin32 after every -mno-cygwin.

Unfortunately you need to rebuild your installed compiler's libraries too.
I've now done this, and will hopefully be able to put up a new InstallShield
shortly with this fix in place.

-- 
http://sc3d.org/rrt/ | maxim, n.  wisdom for fools


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



RE: changing maximum heap

2001-03-29 Thread Simon Marlow


> I need to change the maximum heap to run a program. I know 
> that I can call my 
> program with 
> the -M option (e.g. myProgram +RTS -M120m -RTS).
> But in section 3.12.4 of the user guide are some hooks named, 
> which allow one 
> to change 
> different defaults. Unfortunatly I didn't find a Hook that 
> enables me to 
> increase the heap.
> Is there such a hook? And how do I have to use it? Any other 
> alternatives?

Yes, you want to use defaultsHook().  The flag you need to set is
RtsFlags.GcFlags.maxHeapSize, which is in units of BLOCKs (i.e. divide
by BLOCK_SIZE).  Look in fptools/ghc/compiler/parser/hschooks.c for
examples.

Cheers,
Simon


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