Louis Wasserman wasserman.louis at gmail.com writes:
I compiled my code with -fdicts-strict.
What is this actually supposed to do? It seems the documentation is missing:
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-optimise.html#options-f
Anyway my guess is that if you want
Thanks for your comments.
Check whether it is GC-bound by using +RTS -sstderr.
Well yes, it does a lot of GC (there's no way for the compiler
to optimize away the list of primes) because that was the point
of the example: to confirm (or disprove)
that GC hurts parallelism (at the moment).
Dear all,
I was wondering what is the current status of the ghc RTS
with respect to threading. Is it true that the allocator
and deallocator (garbage collector) are still single-threaded?
I made this example:
import Control.Concurrent
import Control.Concurrent.QSemN
primes1 = sieve [ 2 .. ]
[EMAIL PROTECTED]:~/software/haskell/ghc-6.10.1 find . -name *.y*
./compiler/main/ParsePkgConf.y.source
./compiler/parser/ParserCore.y.source
./compiler/parser/Parser.y.pp.source
./compiler/parser/HaddockParse.y.source
...
___
Glasgow-haskell-users
http://thread.gmane.org/gmane.comp.lang.haskell.glasgow.user/12926
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Dear all,
are there any known issues
with file handles/descriptors in ghc-compiled executables?
My program has a lot of calls to System.Process.runInteractiveProcess
and I'm running into unpredictable behaviour (sometimes the program
just silently dies, sometimes it gets stuck)
The handles I
with 6.10, the following does not typecheck:
foo `Control.Exception.catch` \ _ - return bar
Ambiguous type variable `e' in the constraint:
`Control.Exception.Exception e'
It is probably bad programming style anyway but what is the workaround?
I found some references (in list emails) to
Dear all,
I tried to install the binary snapshot on Debian (etch) x86_64 and got:
/usr/local/lib/ghc-6.10.0.20081005/ghc: error while loading shared
libraries: libedit.so.0: cannot open shared object file: No such file or
directory
I do have libedit (I think):
lrwxrwxrwx 1 root root 14
catch \(e :: SomeException) - ...
So, this changes the API (from 6.8 to 6.10)?
I see there is Control.OldException (providing the old catch)
but that still does not help me if I want my code compile
with both 6.8 and 6.10. Is there some version of catch that works both ways?
best regards,
Dear all,
I have a Haskell program (compiled with -threaded)
that calls an external executable via System.Process.runInteractiveCommand
(and then I do waitForProcess).
The external program finishes with exit_group ()
(I don't have source, but I see it from strace).
Then, my Haskell program dies
Solved - exit_group() wasn't the problem.
My wrapper program silently died from SIGPIPE.
Best regards, J.W.
signature.asc
Description: OpenPGP digital signature
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
One idea we have is to talk about the GHC API.
I am generally interested in this,
but cannot contribute much at the moment.
Best regards, J.W.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE -
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dear all, how does ghci (actually, the ghc API functions)
access the file system?
(It needs to check whether source files had been updated.)
Is it possible to insert an abstraction layer there?
E.g. imagine the sources are not on the file system,
but
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
data Target = Target TargetId (Maybe (StringBuffer,ClockTime))
looks great. How is this intended to be used,
i.e. what should happen if there is an edit/save event in the IDE?
Then the IDE constructs a new StringBuffer from the buffer contents
and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello.
I am assuming that 6.8.1 is the latest
binary release for solaris-sparc?
When I try to call ghc, it says
ld.so.1: ghc-6.8.1: fatal: relocation error: file
/usr/local/lib/libncurses.so.5: symbol main: referenced symbol not found
my
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Does this mean that literate source files should be discouraged? They
seem to be fairly common, especially in conjunction with Cabal (i.e.,
Setup.lhs).
I think the reason for having Setup.lhs instead of Setup.hs
is that you can put
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
what is the exact source file,
what is the compile/link command that causes the error?
if you use ghc --make Foo
then all dependencies should be handled correctly.
what is the output of ghc-pkg list containers?
-BEGIN PGP SIGNATURE-
easily and fully exploit multi-core hardware,
then they sure would take that course on Declarative Programming...
Best regards, Johannes Waldmann.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
Dear all,
how can I convince the Language.Haskell.Parser to accept GHC Haskell
(i.e., -fglasgow-exts, e.g. for existential types)
or: how can I convince the GHC API loader
to parse a module from a string (not from a file)?
Any hints appreciated, Johannes.
http://hackage.haskell.org/cgi-bin/hackage-scripts/package/haskell-src-exts-0.3.3
interesting, I'll look into that.
* it's not exactly a drop-in replacement for Language.Haskell.* ?
(HsNewTypeDecl is different?)
* for the others, number of constructor arguments does not match, e.g.
[...] to add some import statements?
what is your plan? Leif wrote down some ideas (for eclipsefp2) here:
http://leiffrenzel.de/eclipse/wiki/doku.php?id=editororganizeimports
best regards, J.W.
___
Glasgow-haskell-users mailing list
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Introspection? So you can get haddock comments from ghci?
see also http://hackage.haskell.org/trac/ghc/ticket/2168
best regards, j.w.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
list of things to watch out for
when converting Haskell sources written for ghc-6.6
for compilation with ghc-6.8.
Thanks for the pointers. Luckily, only a few changes were needed,
http://leiffrenzel.de/eclipse/wiki/doku.php?id=hare_with_gh-6.8 (sic).
and most of them related to GHC API. I'm
...
Is there an easy way to get a library API diff
(automatically, say, from full 6.6 and 6.8 installations)?
Best regards, Johannes Waldmann.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH9hn73ZnXZuOVyMIRAk1nAKDEteU
, then please educate me;
or perhaps there's an easy way to implement partial reading
and typechecking. (It'd be enough to have this for the current
module, of course.)
Thanks - Johannes Waldmann.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users
Sure.
Syntax errors are usually easy to spot and fix
(for the programmer who uses some reasonable code layout);
the motivation for my proposal was type errors.
I think it would be perfectly acceptable
if ghci rejects modules with parse errors (as it does now)
but handles modules with type errors
If you need the old wrapper function, then use something like this:
wrapper :: ([(String,String)] - IO Html) - IO ()
wrapper f = runCGI $ do
e - getInputs
a - lift $ f $ e
output $ renderHtml a
best regards, Johannes Waldmann.
___
Glasgow
regards, Johannes Waldmann, Leipzig.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHgAR23ZnXZuOVyMIRAvYsAJ9DRhuJ3Nxyn+L+elwij5YmqWw89wCgrtLX
tBgzlnLUjkNWqPkZgCykLuk=
=I3TR
-END PGP SIGNATURE
this was introduced to avoid writing out
some declarations. This is a bad design goal,
especially so for a declarative language.
Reminds me of ancient Fortran using the first letter of an identifier
for implicit typing (I .. N for integer, others for real).
Best regards,
--
-- Johannes Waldmann
Alex Jacobson wrote:
[...][ 50 language pragmas with arbitrary spellings [...]
Indeed.
For instance, I always get an error for -XMultiParameterTypeClasses .
(Without looking at the documentation: do you see why?)
PS: indeed I just checked the docs and found -XDisambiguateRecordFields
Was
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Alex Jacobson wrote:
So what is DisambiguateRecordFields?
http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#disambiguate-fields
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with
,
both running openSuse-10.3
I cannot tell whether this is an regression from 6.6
(I cannot easily backport my code).
Any hints appreciated, Johannes Waldmann.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Can ghc execute compilations in parallel?
(With GNU make, I'd say make -j 2
but how to achieve this with ghc --make ?)
Thanks - J. Waldmann.
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
How can I build the library API docs from a (source) snapshot,
e.g. ghc-6.8.0.20070921-src-extralibs.tar.bz2 ? Thanks,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell
Could not find module `Data.FiniteMap':
is this a backwards-compatibility issue between GHC 6.6.1 and older
versions of GHC?
the module has just vanished from libraries.
is there a simple workaround?
ugly, but workable:
constructors should not be exported :-)
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http
://141.57.11.163/cgi-bin/cvsweb/lib/Autolib/NFA/Data.hs.drift?rev=1.16
but this is of course only a hack, and it duplicates information
since you have to repeat the context in the default instance.
At least this happens only in one place, so it is useful.
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076
refers to Text.XHtml, not Text.Html,
so I had to change these imports as well.
source encoding:
it is annoying that ghc only accepts UTF-8 now.
sure I can use iconv but I rather not touch my sources at all.
with javac, I can just say -encoding latin1.
Best regards,
--
-- Johannes Waldmann -- Tel
How can I get more information
if my ghc-compiled program halts with loop
What kinds of cyclic dependencies
does the runtime system actually recognize?
Thanks -- Johannes Waldmann
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
As for recursive module imports,
could you perhaps show an example where this occurs.
I found that in my code, I can re-arrange things
so as to remove the cyclic dependency. Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
, I get the
same behaviour with ghc-6.4.2.20060121-i386-unknown-linux
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users
. Have you tried 6.4.1? Or a STABLE
snapshot?
no, will do.
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http
are there known problems with ghc-6.4.* and gcc-4.*?
It seems that -O2 does not work (on i386),
as gcc says something like Prologue junk.
(Suse linux 10.0 comes with gcc-4.?`as default compiler).
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de
On the syntax of type signatures: I'd like to be able to write e. g.
do
x :: Int - randomRIO ( 0, 10 )
print x
Currently I have to put ( x :: Int ) in parentheses. Is this necessary?
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann
regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
.
Best regards,
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow
Does this mean the command runghc Setup.hs clean
?
I run such, and it cleans dist/*.
All right.
Now, what is a similar easy command for un-installing
runhaskell Setup.hs unregister ??
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de
is it possible to {-# DEPRECATE #-} a single constructor
(of a data declaration that is, as a whole, not deprecated)?
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell
system call)
this being a repeatable error. (I checked that it can compile simple
Hello World programs - no problems.) (ah yes, I am using gcc-2.95.2,
and uname -a = SunOS aaron 5.8 Generic_108528-15 sun4u sparc )
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk
to the GHC team.
--
-- Johannes Waldmann -- Tel/Fax (0341) 3076 6479/80 --
http://www.imn.htwk-leipzig.de/~waldmann/ ---
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell
I'm not sure whose fault it is but when building HaXml-1.12,
the command ghc-pkg-$VERSION is called which is not provided
by the 6.2.1 debian package (from syntaxpolice.org).
(of course a symlink from ghc-pkg solves this.)
--
-- Johannes Waldmann, Tel/Fax: (0341) 3076 6479 / 6480 --
-- http
...
Undefined first referenced
symbol in file
glXGetProcAddressARB
/usr/local/share/ghc/lib/ghc-6.2/libHSOpenGL_cbits.a(HsOpenGL.o)
any ideas?
--
-- Johannes Waldmann, Tel/Fax: (0341) 3076 6479 / 6480 --
-- http://www.imn.htwk-leipzig.de/~waldmann
program texts,
but you'll find that they are more readable, and extendable.
(Compare adding another component to a tuple, and to a record).
this also gives you the opportunity
to define class instances in any way you want.
best regards,
--
-- Johannes Waldmann http://www.informatik.uni
be replicate n ' ' or something
that behaves nicely for negative arguments.
(that shouldn't of course be there in the first place
but this seems harder to fix. somehow related to nesting, etc.)
Best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL
what exactly happens when ghc applies `-fdicts-strict' ?
and what could then be the reason for
Fail: Oops! Entered absent arg w_s1Bjs {GHCziBase.Ord {- tc 2c -} c {- tv a1AVd -}}
when executing the compiled program?
best regards,
--
-- Johannes Waldmann http://www.informatik.uni
compilation time for this.
Even a LOT of time. )
Thanks,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
.
Best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo
only be evaluated to a small extent.
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org
://www.grappa.univ-lille3.fr/tata/
Well, at least my impression is that these topics *are* closely related,
and *both* should certainly benefit from a closer investigation of their
interrelations. (this is what I'll be attempting in one part of my thesis.)
best regards,
--
-- Johannes Waldmann
in __libc_start_main () from /lib/libc.so.6
Any hints?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org
ghc-5.02.2 seems to need gcc-2.95.3, but here we have gcc-3.0.* per default.
There IS a gcc-2.95.3 tree around, but how do I tell ghc about it?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252
).
Note that some (most?) of the above is available for type *classes*,
instead of types.
Best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow
- being *not* an Haskell implementor, of course :-)
Best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
-specific language).
Seems like a reasonable compromise.
Best regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL
: getSocketOption
Reason: Invalid argument
even though there IS a listener on the socket
(other programs can connect to it).
I have ghc-5.02 (binary package for SunOS)
Any hints appreciated. how to find out what is invalid?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe
it help with respect to this problem?)
Regards,
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http
throwing an exception.
(I checked that the RTS thinks `hIsWritable h'
even if `h' does no longer exist in reality.)
How could I work around this? SocketPrim?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252
is it?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
OK, I was being a bit stupid this morning.
Now I see that `parIO' is not in the ghc libs,
but programmed explicitely in the `Tackling the awkward sqaud' paper.
http://research.microsoft.com/~simonpj/papers/marktoberdorf.htm
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe
timer = do
threadDelay d
throw $ AssertionFailed "timer expired"
t - forkIO timer
x - action
killThread t
return x
it seems to work, but how do I turn off the "Fail: thread killed" messages?
--
-- Johannes Waldmann http://www.informatik.uni
one is running, the other one is stopped -
as used in tournament Chess.)
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL
somehow thought they were garbage collecteted, but apparently the weren't.
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL
Dear all, I was running a ghc compiled executable,
(containing -syslib net -syslib concurrent) and got this after a while
Fail: resource exhausted
Action: openFile
Reason: process file table full connect-985988146.log
what could be the reasons? something related to sockets?
--
-- Johannes
Dear all, I am looking for some code that uses ghc's Socket module.
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/252 --
___
Glasgow-haskell-users mailing list
[EMAIL
)
ftp://ftp.nuri.net/Go/programs/protocol.Z
any hints appreciated. PosixIO maybe?
--
-- Johannes Waldmann http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/209 --
nted to avoid it (because hugs wouldn't handle it),
i re-thought the placement of identifiers
and the programm looked generally better afterwards.
are there typical cases where cyclic module dependencies
are the "natural" solution?
best regards,
--
Johannes Waldmann Institut fur Inform
76 matches
Mail list logo