Re: Why does sizeOf Word64 = 4?

2003-11-09 Thread Martin Norbäck
sÃn 2003-11-09 klockan 03.32 skrev Ben Escoto: > Hi, I'm trying to learn about Haskell's FFI (running 6.0.1 on linux) > and see the following weird behavior with ghci: > > Prelude> :module Data.Word Foreign.Storable Foreign.Ptr > Prelude Foreign.Ptr Foreign.Storable Data.Word> sizeOf n

happy, ghc and {# OPTIONS #} pragma

2003-06-06 Thread Martin Norbäck
there a way to make GHC recognise the pragma even though it is after a comment? Regards, Martin -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40 +46 (0)708 26 33 60 S-414 78 GÖTEBORG http://www.dtek.chalmers.se/~d95mback/ S

ghc errrorformat for vim

2003-04-04 Thread Martin Norbäck
Errors from the GHC haskell compiler looks something like this: Apa.hs:3: parse error (possibly incorrect indentation) Bepa.hs:15: Warning: Module `Cepa' is imported, but nothing from it is used \t (except perhaps to re-export instances visible in `Cepa') So I'd thought I'd make a vim 'er

RE: GHCi-5.04.2: Windows Open with ... problem.

2003-02-14 Thread Martin Norbäck
ct files are generated where the source files are, and those directories (it's our custom haskell libraries) include a lot of source and object files that should not be part of this program. Regards, Martin -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40

Using --make with -odir and hierarchical modules

2003-01-15 Thread Martin Norbäck
is an ever lesser change in semantics, and is better than solution 2 in my opinion. I would recommend using solution 1 if the path name is relative and solution 3 if it's absolute. Regards, Martin -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40 +46

RE: Hierarchical modules and compilation output redirection

2002-10-15 Thread Martin Norbäck
tis 2002-10-15 klockan 17.18 skrev Simon Marlow: > > However it won't work since ghc wll put the compilation output of both > > modules in OUTPUT_DIR/Module.o and subsequently fail to link. > > Perhaps -odir should append the full module name as a directory (i.e. the default >behaviour would be

Hierarchical modules and compilation output redirection

2002-10-15 Thread Martin Norbäck
I am using hierarchical modules with ghc, and I have a bunch of common modules used by several projects, which should build on serveral platforms. Now, assume I have the following: . |-- Bar | `-- Module.hs |-- Foo | `-- Module.hs `-- Main.hs Main imports both Bar.Module and Foo.module. C

Re: ghc --make and static libraries (SOLUTION)

2002-10-10 Thread Martin Norbäck
tor 2002-10-10 klockan 14.02 skrev Martin Norbäck: > How do I go about linking to a static library when using --make? > > If i do > > ghc --make Module libmodulelib.a > > then ghc syas: > > chasing modules from Module,libmodulelib.a and complains about not being

ghc --make and static libraries

2002-10-10 Thread Martin Norbäck
How do I go about linking to a static library when using --make? If i do ghc --make Module libmodulelib.a then ghc syas: chasing modules from Module,libmodulelib.a and complains about not being able to find the _module_ modulelib.a. Likewise on windows, if I do ghc --make Module modulelib.dll

The readline issue

2002-06-12 Thread Martin Norbäck
odule in a separate package and noting this in the users guide. So I am a happy camper now. -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40 +46 (0)708 26 33 60 S-414 78 GÖTEBORG http://www.dtek.chalmers.se/~d95mback/ S

possible readline license problem with ghc and -package util

2002-06-11 Thread Martin Norbäck
h ghc, ghc uses readline and is not licensed under the GPL. A possible GPL violation, at least it would be according to Richard Stallman. Regards, Martin -- Martin Norbäck Safelogic AB [EMAIL PROTECTED]Stena Center 1C +46 (0)31 772 81 70

Re: install question

2002-05-27 Thread Martin Norbäck
MS install, and try to compile a small program. If they don't install, then perhaps there is some compatibility RPM for suse that you can install. Regards, Martin -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40 +46 (0)708 26 33 60

Re: module namespaces with "Prelude"

2002-04-25 Thread Martin Norbäck
tor 2002-04-25 klockan 01.07 skrev Johan Nordlander: > One might also argue that the problem is these extra roots that > are implicitly added to the search path. Arguably, dropping the > current directory and the directory of the importing module from > the search path would solve the problems

RE: strange behavior with ghci version 5.02.2

2002-02-15 Thread Martin Norbäck
fre 2002-02-15 klockan 10.48 skrev Simon Marlow: > > > After loading a module with > > > > > > :l Module > > > > > > you can't use the Prelude functions unqualified, you just get things > > > like > > > > > > :1: Variable not in scope: `show' > > > > > > I am pretty sure that this worked some days

Re: scope in ghci. Reply

2002-02-15 Thread Martin Norbäck
fre 2002-02-15 klockan 07.26 skrev S.D.Mechveliani: > Martin Norb <[EMAIL PROTECTED]> writes > > > > I just noticed this behavior with ghci > > > > After loading a module with > > > > :l Module > > > > you can't use the Prelude functions unqualified, you just get things > > like > > > > :1: Va

strange behavior with ghci version 5.02.2

2002-02-14 Thread Martin Norbäck
el totally confused. Has this happened to anyone else? Regards, Martin -- Martin Norbäck Safelogic AB [EMAIL PROTECTED]Stena Center 1C +46 (0)31 772 81 70S-412 92 GÖTEBORG http://www.safelogic.se

Re: Linking Problem, ghc 5.02: cannot find -lreadline

2002-02-05 Thread Martin Norbäck
tis 2002-02-05 klockan 11.53 skrev Marc van Dongen: > When I tried to compile some large program I was delighted > to see that all object files got created smoothly. > > At the linking stage I got an error: > ''cannot find -lreadline >collect2: ld returned 1 exit status'' > > I couldn't fin

RE: 5.02.2 binary incompatible with 5.02.1

2002-01-22 Thread Martin Norbäck
tis 2002-01-22 klockan 15.48 skrev Simon Marlow: > > I just noted that 5.02.2 is binary incompatible with 5.02.1 which is a > > minor nuisance, since I must then recompile all my .o-files. > > > > This was not mentioned in the release notes, perhaps it was > > unintentional? > > Yes, this is the

5.02.2 binary incompatible with 5.02.1

2002-01-22 Thread Martin Norbäck
I just noted that 5.02.2 is binary incompatible with 5.02.1 which is a minor nuisance, since I must then recompile all my .o-files. This was not mentioned in the release notes, perhaps it was unintentional? On the other hand, the time of compilation of my happy parser decreased from 20 minutes t

ghc --make feature request

2001-10-26 Thread Martin Norbäck
I just wanted to make a feature request to ghc --make (there seem to have been a number of such...) I have a project currently consisting of 36 Haskell modules, and a number of support modules for those. Naturally, compiling this takes quite some time (even for ghc --make) especially considering