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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
20 matches
Mail list logo