ghc-6.8.3 binary dist problem

2008-06-26 Thread Benjamin Franksen
When I try to ./configure, I get this error: aragon: .../i386-unknown-linux/ghc-6.8.3 ./configure --prefix=/projects/ctl/franksen/usr checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu Which we'll

Re: ghc-6.8.3 binary dist problem

2008-06-27 Thread Benjamin Franksen
Ian Lynagh wrote: On Thu, Jun 26, 2008 at 02:51:05PM +0200, Benjamin Franksen wrote: aragon: .../i386-unknown-linux/ghc-6.8.3 utils/pwd/pwd forwardslash [1]28489 floating point exception utils/pwd/pwd forwardslash This happens when your system (libc?) is too old to run the binaries

Takusen build error

2008-06-30 Thread Benjamin Franksen
I get a strange error building Takusen (more precisely: the module Foreign/C/UTF8.hs) with ghc-6.8.3. It says aragon: .../ghc-6.8.3/Takusen-0.8.1 ./Setup build -v Reading parameters from /srv/projects/ctl/franksen/haskell/ghc-6.8.3/Takusen-0.8.1/takusen.buildinfo Creating dist/build (and its

Re: Takusen build error

2008-07-02 Thread Benjamin Franksen
Alistair Bayley wrote: I get a strange error building Takusen (more precisely: the module Foreign/C/UTF8.hs) with ghc-6.8.3. It says [1 of 9] Compiling Foreign.C.UTF8 ( Foreign/C/UTF8.hs, dist/build/Foreign/C/UTF8.o ) /tmp/ghc18936_0/ghc18936_0.s: Assembler messages:

Re: Implicit parameter constraints not inferred

2004-11-06 Thread Benjamin Franksen
On Saturday 06 November 2004 17:57, you wrote: Benjamin Franksen wrote: My question: Is this as it should be or is it a bug? The Monomorphism Restriction. Grumble... I almost suspected it. Only the context in which I got the error originally didn't _look_ as if MR would apply, and when I

ghc -e

2004-11-17 Thread Benjamin Franksen
Hello, I want to use ghc as a script interpreter, using the '-e' option. The problem is that I can't give the script any command line arguments, because 'ghc -e' intepretes everything argument as the name of a module to compile. cat Test.hs import System main = getArgs = print ghc -e

Bug in touchForeignPtr?

2004-11-20 Thread Benjamin Franksen
Hi, I am using Foreign.Concurrent.newForeignPtr and touchForeignPtr inside the finalizers to express liveness dependencies as hinted to by the documentation. This doesn't seem to work, though, or at least I can't see what I've done wrong. I attached a test module; compiled with ghc

Re: Bug in touchForeignPtr?

2004-11-22 Thread Benjamin Franksen
On Monday 22 November 2004 14:45, Simon Marlow wrote: On 20 November 2004 23:02, Benjamin Franksen wrote: I am using Foreign.Concurrent.newForeignPtr and touchForeignPtr inside the finalizers to express liveness dependencies as hinted to by the documentation. This doesn't seem to work

Re: Bug in touchForeignPtr?

2004-11-22 Thread Benjamin Franksen
On Monday 22 November 2004 18:55, Sven Panne wrote: Abraham Egnor wrote: I've found that when writing an interface to a C library that requires resource management, it's much better to use the withX (see Control.Exception.bracket) style of function than to use finalizers - programs are

Re: Bug in touchForeignPtr?

2004-11-23 Thread Benjamin Franksen
On Tuesday 23 November 2004 13:06, Simon Marlow wrote: On 22 November 2004 17:28, Benjamin Franksen wrote: I understand that there are situations where finalizers cannot be guaranteed to run: First because of an unconditional termination signal (SIGKILL), second because of circular

Re: ghc -e

2004-11-23 Thread Benjamin Franksen
On Wednesday 17 November 2004 15:06, Nils Anders Danielsson wrote: On Wed, 17 Nov 2004, Benjamin Franksen wrote: I want to use ghc as a script interpreter, using the '-e' option. The problem is that I can't give the script any command line arguments, because 'ghc -e' intepretes everything

Re: ghc -e

2004-11-24 Thread Benjamin Franksen
On Wednesday 24 November 2004 02:39, Nils Anders Danielsson wrote: On Wed, 24 Nov 2004, Benjamin Franksen wrote: What about putting this thing on the Haskell Wiki? Feel free to do so. I recently noted that some version of GHC (6.3?) ships with a runghc program, so this problem will most

Scrap your boilerplate (but don't scrap them precious comments)

2005-02-28 Thread Benjamin Franksen
Hi, I have been racking my brain over the infamous 'gfoldl' and 'gunfold' combinators. (Yes, I have read the papers). What finally made me understand how they worked was reading the code: first the implementation of the gmap functions (Data/Generics/Basics.hs), then the long and detailed

Re: GHC 6.4 release candidates available

2005-03-01 Thread Benjamin Franksen
I haven't followed this thread too closely so please excuse me if this has already been mentioned (or even fixed). After I installed the latest binary package (20050228) the documentation was not correctly linked from the main documentation page. 'Hierarchical Libraries' on the main page

Re: simple question

2005-04-02 Thread Benjamin Franksen
On Saturday 02 April 2005 22:29, Peter Hercek wrote: What is $ function good for? Mostly for avoiding parentheses. $ is right associative and has lowest precedence, whereas normal application is left associative and binds most tightly: f $ g $ h x === f ( g ( h x ) ) There are more

ghc for hp-ux 10.20 or 11

2005-04-21 Thread Benjamin Franksen
Has anyone ever succeeded in porting ghc to HP-UX 10.20 or later? Ben ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: ghc for hp-ux 10.20 or 11

2005-04-21 Thread Benjamin Franksen
On Thursday 21 April 2005 11:38, Benjamin Franksen wrote: Has anyone ever succeeded in porting ghc to HP-UX 10.20 or later? Sidenote: The background is that I want to persuade people at work to switch from CVS to darcs. It would be a lot easier to do so if I could get darcs to compile under

Cabal as shiped with ghc...

2005-04-21 Thread Benjamin Franksen
...has package version 1.0, but the current darcs repo (and the home page) says latest version is 0.6. May I assume that the 1.0 versioning is accidental (i.e. wrong)? Ben ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Linking shared libraries

2005-04-21 Thread Benjamin Franksen
I know that ghc cannot produce shared libraries on all systems, but what about just linking existing ones (i.e. for ffi code)? Is there a secret command line switch for that, or do I have to use the C linker? Is there an option in cabal that I have been missing that could help me? Cheers Ben

Re: Inferred type is less polymorphic than expected?

2005-07-29 Thread Benjamin Franksen
-haskell-users/2005-July/00 8786.html Thomas On 7/29/05, Benjamin Franksen [EMAIL PROTECTED] wrote: Bug.lhs:27:0: Contexts differ in length When matching the contexts of the signatures for printer :: Viewer printCatalog :: forall c. (Catalog c) = View c

Re: Inferred type is less polymorphic than expected?

2005-07-30 Thread Benjamin Franksen
On Saturday 30 July 2005 03:54, Thomas Jäger wrote: You're probably refering to the version where you omit the type signatures of both 'printer' and 'printCatalog'. Here the situation is different because the compiler needs to infer the types and not just check. In the explicitely typed

Re: Idempontent IO actions and unsafeSTMToIO

2005-08-06 Thread Benjamin Franksen
On Saturday 06 August 2005 20:12, Robert van Herk wrote: Is it true to say that to perform idempotent IO actions inside a STM monad by using unsafeSTMToIO is safe? I mean something like: do ... -- some STM actions unsafeSTMToIO a -- Here, a is an idempotent IO action ... -- some

Re: Inferred type is less polymorphic than expected?

2005-08-09 Thread Benjamin Franksen
On Monday 08 August 2005 09:43, Simon Peyton-Jones wrote: | | Are you saying, that the second error causes the first one? Thus, | | everything is caused by 'printer' being recursively defined? | | | | Yes, that's what I believe. I'm not sure why it shows the first | | error message at all; in my

Re: How to make Data.Set.Set a Functor

2005-10-11 Thread Benjamin Franksen
On Tuesday 11 October 2005 18:16, Lajos Nagy wrote: While working on a toy compiler I realized that Data.Set.Set (Set) is not an instance of the Functor class. In other words: 'fmap' is not defined on it. I tried various ways of defining an instance but I failed. The reason is quite

Re: GHC and Windows (DLL/FFI) woes

2005-10-26 Thread Benjamin Franksen
On Monday 24 October 2005 12:01, Simon Marlow wrote: On 23 October 2005 19:00, Esa Ilari Vuokko wrote: I have been trying to build some Windows DLLs with GHC, and I have run into some misfeatures or maybe I have misunderstood how to use GHC. Any help or advice would be appreciated. :)

Re: jhc vs ghc and the surprising result involving ghc generatedassembly.

2005-10-27 Thread Benjamin Franksen
On Thursday 27 October 2005 13:11, John Meacham wrote: I am not sure how much sense this makes though. I am no expert on the spineless tagless G machine (which would make an excellent name for a band BTW) :-) Ben ___ Glasgow-haskell-users

Re: storing highly shared data structures

2006-01-02 Thread Benjamin Franksen
On Thursday 29 December 2005 18:22, Christian Maeder wrote: Einar Karttunen wrote: On 22.12 14:43, Christian Maeder wrote: How can I detect this sharing in order to avoid traversing the very same symbol table for every symbol? By using System.Mem.StableName SerTH

Re: Re[2]: --make keep going?

2006-03-03 Thread Benjamin Franksen
On Friday 03 March 2006 15:10, Bulat Ziganshin wrote: it will also be great to make syntax analysis of all source files before compiling them. typical situation - after correcting program i run --make, long wait while some modules will be compiled and only after that ghc complains about some

Re: Possible runtime overhead of wrapping the IO monad?

2006-03-31 Thread Benjamin Franksen
On Thursday 30 March 2006 14:13, Brian Hulley wrote: John Meacham wrote: On Thu, Mar 30, 2006 at 03:50:06AM +0100, Brian Hulley wrote: where the intention is that the callback will take the width and height of the window and return a RenderM action, the problem is that because the FFI

Re: ghc command line evaluation

2006-04-05 Thread Benjamin Franksen
On Wednesday 05 April 2006 20:32, Pedro Miguel Duarte wrote: I am writing a Java program with a call to a Haskell module M.hs, in order to evaluate some expression expr. A very simple idea, which I got somewhere in the net, is to create a Process object p which executes a GHC