On Mon, Feb 25, 2008 at 11:14:08AM +, Simon Marlow wrote:
Frederik Eaton wrote:
Thanks, I may try that. I'm currently trying to get my GNU-make-based
build to install profiling versions of package modules, in the hope
that -xc might give more useful information than it did a year ago
Hello,
ghc-pkg.bin has been using up most of the CPU for over 3 minutes, is
this a known bug?
Frederik
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
On Sun, Feb 24, 2008 at 02:36:08AM +0100, Daniel Fischer wrote:
Am Sonntag, 24. Februar 2008 02:18 schrieb Frederik Eaton:
Hello,
I have a program which uses some code in a package, and I would like
to be able to find out the source of an error which is occuring inside
that package. Can
Hello,
I have a program which uses some code in a package, and I would like
to be able to find out the source of an error which is occuring inside
that package. Can I use the ghci-debugger to do this? If I try to set
a breakpoint inside the package, it says:
cannot set breakpoint on
On Sun, Feb 24, 2008 at 02:36:08AM +0100, Daniel Fischer wrote:
Am Sonntag, 24. Februar 2008 02:18 schrieb Frederik Eaton:
Hello,
I have a program which uses some code in a package, and I would like
to be able to find out the source of an error which is occuring inside
that package. Can
it seemed like the old library had no users. I should put my
money where my
mouth is, Network.CGI.Compat is now back in the cgi package.
/Bjorn
On Jan 22, 2008, at 18:28 , Frederik Eaton wrote:
Hi Bjorn,
Well, I don't know what the solution is. As I have said, I think it
would be best
/Network/CGI/Compat.hs
/Björn
Frederik Eaton wrote:
Dear Johannes,
Thanks, that works for me.
Bjorn, perhaps it would be easier to put these five lines in a module
(Network.CGI.Compat?) in the new package, rather than having people
maintain and download a separate cgi-compat package
Hello Ian,
I've just noticed that there seem to be ghc-6.8.2 compatible packages
for some modules on Debian amd64 but not i386:
$ sudo apt-get install -t experimental libghc6-{cgi,network}-dev
...
The following packages have unmet dependencies:
libghc6-cgi-dev: Depends: ghc6 (
Dear Johannes,
Thanks, that works for me.
Bjorn, perhaps it would be easier to put these five lines in a module
(Network.CGI.Compat?) in the new package, rather than having people
maintain and download a separate cgi-compat package? Perhaps the two
other functions in the old CGI interface can be
Hello,
I can't use Cabal on some of my projects, for various reasons that
I've discussed here earlier... However, I can have a cabal file to
describe the dependencies and so forth. Is there a way to generate a
proper package config using a cabal file? Or is there some other way
to do it so I get
Coutts wrote:
On Sun, 2008-01-20 at 16:08 +, Frederik Eaton wrote:
Hello,
I can't use Cabal on some of my projects, for various reasons that
I've discussed here earlier...
BTW, just so we do not loose track of those reasons could you double
check that all the problems
On Sun, Jan 20, 2008 at 06:21:56PM +, Duncan Coutts wrote:
On Sun, 2008-01-20 at 17:37 +, Frederik Eaton wrote:
Hi Duncan,
Thanks, --gen-pkg-config works.
I don't know if Cabal will ever be suitable for me - I prefer to be
able to build specific targets, and to track
Hello all,
About two years ago, I wrote a web page for one of my projects, using
Network.CGI. I chose that over WASH because it had a simple interface
and I thought it would be more stable as a result. Now, Bjorn Bringert
has replaced the interface with a completely different one. There is a
- I think
something vaguely similar was done with some web browsers once,
although perhaps not with the entire program state. It sounds like it
might be difficult to implement, though. Just a thought.
Cheers,
Frederik
On Thu, Jul 05, 2007 at 08:56:58PM +0100, Simon Marlow wrote:
Frederik Eaton
Hello,
I've been seeing this a lot:
interactive: internal error: stg_ap_pp_ret
(GHC version 6.6.1 for i386_unknown_linux)
Sometimes it seems to go away when I remove .o and .hi files and
recompile, but it keeps coming back when I make edits and/or compile
with different optimisation options
Hello,
Perhaps it's a bit late, but should the release notes for 6.6.1
mention that many libraries have been split off from the main package
(at least in the Debian version)?
I am looking here:
/usr/share/doc/ghc6/changelog.Debian.gz
and here:
OK I see, I was switching from a ghc-6.6.20070420 binary release to
the Debian package. I must have installed the 'extralibs' package or
something together with the former...?
Frederik
On Thu, Jun 07, 2007 at 04:23:17PM +0100, Simon Marlow wrote:
Frederik Eaton wrote:
Hello,
Perhaps it's
If you have GHC-6.6 or greater, try: let n = 2 in GHC.Base.breakpoint ()
GHC.Base.breakpoint doesn't work in the HEAD at the moment. We might want to
restore it; I'm not sure. Since
breakpoints are almost everywhere, it didn't seem necessary.
I don't understand the last sentence.
Hello,
I think what I'm trying to do is too ambitious, but I thought I would
ask to see if it is possible. It seems like there is no easy way to do
it, given what I've seen of the GHC API.
I would like to have a function, say it is called this, which has
the following effect in ghci
let n = 2
This is pretty much that the GHCi debugger does expect it restores
the
environment at the end of a breakpoint.
I can't make any sense of what you wrote. Did you mean what instead
of that, and except instead of expect? In that case, it is good
news to hear that it has already been done.
If
Hello,
I am attaching files to hopefully reproduce a problem I am having. I
have not upgraded to 6.6.1 yet so let me know if it has been fixed.
$ touch fpenv_c.c fpenv.hs cc -g -Wall -c fpenv_c.c ghc -fasm --make
fpenv.hs fpenv_c.o -lc
[1 of 1] Compiling Main ( fpenv.hs, fpenv.o )
Regardless of whether you can reproduce the error, you can also file
another bug suggestion that the wording of that message is
incomprehensible.
OK, well I sent something to the mailing list, I don't really know
what would go in a bug report since I can't reproduce it. Next time I
will
] On Behalf Of Frederik Eaton
| Sent: 12 May 2007 22:14
| To: glasgow-haskell-bugs@haskell.org
| Subject: main main main main main
|
| Hello,
|
| I'm suddenly getting the following error when I compile a program:
|
| bayesian-sets.hs:1:0:
| The main function `main' is not defined
reference to type checking still
holds...?
Thanks,
Frederik
On Sun, May 13, 2007 at 05:37:52PM +0100, Frederik Eaton wrote:
Hello,
The main point about the error message is that it says that 'main' is
not defined, while it is typechecking 'main' - but I thought it only
typechecks things which
Hello,
Here is another (hopefully less bogus) error message which I don't
know what to do with:
$ A=bayesian-sets; ghc --make $A.hs -package vectro -lstdc++
-fallow-incoherent-instances -lstdc++ time ./$A
[1 of 1] Compiling Main ( bayesian-sets.hs, bayesian-sets.o )
Loading package
Hello,
Ah, removing the entire install directory for the package (in ~/lib/)
fixed things. That seems odd, but perhaps I should be doing it in my
Makefile.
Thanks,
Frederik
On Mon, May 14, 2007 at 01:26:05AM +0100, Frederik Eaton wrote:
Hello,
Here is another (hopefully less bogus) error
Hello,
I'm suddenly getting the following error when I compile a program:
bayesian-sets.hs:1:0:
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
I don't know what that means. Perhaps the error could be made more
human-friendly?
,
Frederik Eaton wrote:
[1 text/plain; us-ascii (7bit)]
Hello,
I'm suddenly getting the following error when I compile a program:
bayesian-sets.hs:1:0:
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
I don't
Thanks Duncan, yes 'uname -a' shows i686. I was confused because the
cpu is EM46T, I don't know why uname does not say x86_64.
Yes, a better failure mode would indeed be helpful!
Frederik
On Wed, May 09, 2007 at 08:38:57AM +, Duncan Coutts wrote:
On Wed, 2007-05-09 at 03:42 +0100, Frederik
On Fri, Apr 27, 2007 at 11:01:49AM +0100, Simon Marlow wrote:
Frederik Eaton wrote:
Hello,
I am wondering how to link a package with some dynamic libraries in a
way that works with ghci. If I run the command
LD_PRELOAD=/lib/libgcc_s.so.1:/usr/lib/libstdc++.so.6 ghci -package mypackage
Hello,
I found that the distribution at this URL
http://haskell.org/ghc/dist/6.6.1/ghc-6.6.1-x86_64-unknown-linux.tar.bz2
failed to install. There were lots of no such file or directory
errors during 'cp' invocations I think. The i386 version sems to work
fine. Hope this isn't a mistake on my
Hello,
My copy of the library documentation says:
groupBy :: (a - a - Bool) - [a] - [[a]]
The groupBy function is the non-overloaded version of group.
User-supplied comparison (replacing an Ord context)
The function is assumed to define a total ordering.
But group has an Eq
Hello,
I am wondering how to link a package with some dynamic libraries in a
way that works with ghci. If I run the command
LD_PRELOAD=/lib/libgcc_s.so.1:/usr/lib/libstdc++.so.6 ghci -package mypackage
then it is successful; I am able to use package mypackage in ghci. But
if I omit the
By the way, I replied to this via email because I can't figure out how
to annotate the bug anymore. I'm rather stumped... I thought email
replies might automatically become associated with the bug.
Frederik
On Sat, Apr 14, 2007 at 01:04:52PM +0100, Frederik Eaton wrote:
Hi Igloo,
We
On Sun, Apr 22, 2007 at 08:44:44AM -0700, Stefan O'Rear wrote:
On Sun, Apr 22, 2007 at 12:02:19PM +0100, Frederik Eaton wrote:
By the way, I replied to this via email because I can't figure out how
to annotate the bug anymore. I'm rather stumped... I thought email
replies might
Hello,
I have a package which links to several libraries, which I have built
with Cabal. I can use it to compile executables:
$ ghc -package vectro --make Vector/Sparse/subvec-example.hs -o sve
Linking sve ...
And the library references in those executables are correct:
$ /lib/ld-2.5.so --list
Hi Igloo,
We are not suggesting that runhaskell should support a leading #! line
- it already does. The argument is about whether it should support
files that don't have an extension.
Also, this is a tangent, but: for files that start with #!, I
generally interpret the lines following the first
Also, there are some library functions that will block all Haskell threads
unless used with the
threaded RTS (e.g. System.Process.waitForProcess). These are now safe to use
with GHCi.
Yay! I think that's what I wanted to know.
Thanks,
Frederik
--
http://ofb.net/~frederik/
Hello,
This is a bit lame but I don't know where to find the information...
I am wondering if ghci is OK to use with threads now. It seems to work
but I have written down in some of my source code that a certain
function won't work under ghci because it uses threads and I can't
remember what the
Hello,
What is the proper technique for creating a Haskell script on a Unix
system?
e.g. with Perl I do
#!/usr/bin/env perl
print hello world\n;
or
#!/usr/bin/perl
print hello world\n;
I tried
$ cat test
#!/usr/bin/env runhaskell
module Main where
main = do
putStrLn hello world
But
Kurtzberg
On Wed, 14 Mar 2007 19:31:55 +
Frederik Eaton [EMAIL PROTECTED] wrote:
Hello,
What is the proper technique for creating a Haskell script on a Unix
system?
e.g. with Perl I do
#!/bin/sh
echo DEFANGED.348224
exit
#!/usr/bin/env perl
print hello world\n
Couldn't match expected type `Bool - [a]'
against inferred type `()'
In the first argument of `a', namely `()'
In the expression: a ()
In the definition of `d': d = a ()
Also, I don't know what other people will think, but something bothers
me about the In on the
| -Original Message-
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
| Behalf Of Frederik Eaton
| Sent: 11 March 2007 20:44
| To: glasgow-haskell-bugs@haskell.org
| Subject: question about expected and inferred types in error messages
|
| Hello,
|
| I hope that this isn't again
Hello,
If I try to compile a program which depends on a file which omits the
module X where line, then I get an error message from ghc:
no location info: file name does not match module name `Main'
This is not very helpful, since it doesn't tell me which file the
error is in, or what the
Hello,
Are some profiling options incompatible? Here are problems I've run into:
$ ghc -Wall -prof -auto-all -caf-all --make sparse-test.hs sparse_lib.o -lm -lc
-lstdc++
[10 of 10] Compiling Main ( sparse-test.hs, sparse-test.o )
sparse-test.hs:18:0:
Warning: Definition but no
/tmp/ghc4721_0/ghc4721_0.s:4185:0:
Error: symbol `Mainmain_CAF_cc_ccs' is already defined
= '-auto-all' and '-caf-all' can't be used together?
Actually, sorry, I get the same error when I just use -caf-all by
itself...
Frederik
--
http://ofb.net/~frederik/
produce more information, but the problem occurs
without it.
Thank you,
Frederik
P.S. Also, it would of course be very helpful if the '-xc' traces
showed line numbers. :)
On Mon, Jan 15, 2007 at 03:09:48PM +, Frederik Eaton wrote:
Hello,
Are some profiling options incompatible? Here
think this kind of build system feature ought to go into Cabal so it
can be used more widely and without people needing Makefiles.
I admit that we're not there yet with how easy it is to generate source
files.
Duncan
On Mon, 2006-11-06 at 21:12 +, Frederik Eaton wrote:
Hello,
I have
Hi Neil,
I've seen hoogle and I like it. Does Hoogle have the following
features?
- ability to index any library
- ability to use from the console
- command-line autocompletion
Of course, there are many features that Hoogle has, which my program
is missing.
Frederik
On Tue, Nov 07, 2006 at
Since you already have a Makefile, why not add this to it:
SRCS = Source.hs ...
prog: $(SRCS)
ghc --make $(SRCS) -o prog
and then just say 'make' to build your program? Surely that's easier than
typing 'ghc
--make-command=make ...'? Maybe I'm missing something?
Hi Simon,
I
Yes, I know command line completion works - but only for files, not
for anything else, and there is no way to make it work for other
things. However, I know that zsh can do funky things like
autocompleting ssh paths etc - and I think I remember seeing that
there was some way a program could
Hello,
I have a proposal for ghc. I think that it should take a new option,
say --make-command. This will specify a command to be run whenever a
source file is read in by ghc. The command will be passed an argument,
which is the name of the source file. The idea is that the command can
be used to
Hello,
I have a perl script which I call 'hsman', which indexes
Haddock-generated HTML files, and allows users to search for functions
and also GHC manual topics. For instance, I can run:
$ hsman foldl
to open the documentation on 'foldl'. There is also tab-completion in
zsh.
If people think
What about packages with multiple module trees like, say, Cabal?
That's a good question, and I think the right answer is not to do
anything special to support them. I assume that what you're referring
to with Cabal is that there is no common prefix for all of the module
names, but rather a small
On Sun, Oct 29, 2006 at 10:03:32PM -0400, Samuel Bronson wrote:
On 10/25/06, Frederik Eaton [EMAIL PROTECTED] wrote:
http://hackage.haskell.org/trac/ghc/wiki/PackageMounting
It looks nice, but don't you think the -package-base flag ought to
take both the package name *and* the mountpoint
Hi lists,
I recently read Simon Peyton Jones' proposal:
http://hackage.haskell.org/trac/ghc/wiki/GhcPackages
and disagreed with some of the design decisions. (To be fair, the
aspects I disagree with are shared with most or all of the other
proposals) So I've put an alternative proposal here:
Hi,
I think it would be a good idea to print instructions for getting more
information when a program fails with a pattern match or other error.
Rather than
foo: Prelude.undefined
it should say
foo: Prelude.undefined
For information about the location of this error, recompile with -prof
On Thu, Aug 24, 2006 at 12:38:34PM -0700, John Meacham wrote:
On Thu, Aug 24, 2006 at 02:26:42PM +0100, Frederik Eaton wrote:
Because of what you said above, it's not perfect. But it's better than
the default. Look, if someone is writing something to standard error,
it's probably because
Hi! I almost forgot that I never responded to this, sorry.
On Tue, Apr 18, 2006 at 11:37:12AM +0100, Simon Marlow wrote:
Frederik Eaton wrote:
I have a project which currently uses Cabal, and I would like to
switch to using a plain Makefile. I have two examples of projects that use
Makefiles
On Thu, Aug 24, 2006 at 08:36:07AM +0200, Tomasz Zielonka wrote:
On Thu, Aug 24, 2006 at 01:12:32AM +0100, Frederik Eaton wrote:
Do you think that the standard GHC behavior should be for
multithreaded programs to produce garbage on stderr?
IIUC, even if you switch to LineBuffering
to
'stderr', so it is no longer a problem for me personally; but for new
users, for general-purpose use of the compiler, I think changing the
stderr buffering mode is the best solution.
Regards,
Frederik
On Wed, Aug 23, 2006 at 10:41:02AM +0100, Simon Marlow wrote:
Frederik Eaton wrote:
Hey, it looks
it? What API are you using to write the file? On what OS?
Cheers,
Simon
Frederik Eaton wrote:
Sorry, forgot to say that I was using GHC 6.4.2 the first time, and
ghc-6.4.3.20060816 this time.
Frederik
On Mon, Aug 21, 2006 at 10:45:40PM +0100, Frederik Eaton wrote:
Hi,
I'm
-22 22:49:58 3: duration: 0.3 msec
2006-08-22 22:49:58 3: executing (update pfcq_study_cmdid set cmdid = cmdid+1
where user=2;)
Frederik
On Tue, Aug 22, 2006 at 02:43:36PM +0100, Frederik Eaton wrote:
I can't repeat it, but I can
The Glorious Glasgow Haskell Compilation System, version 6.4.3.20060816
now - getClockTime
addToClockTime (TimeDiff {tdYear = 0, tdMonth = 0, tdDay = 0, tdHour = 0,
tdMin = 0, tdSec = 0, tdPicosec = }) now
*** Exception: Time.toClockTime: picoseconds out of range
--
Hi,
I'm seeing some odd data corruption in a log file. Below, the second
line should be a SQL query (prefixed by a timestamp). It's turned into
garbage, but apparently not just random bytes. I'm using HSQL - that's
the only external library, and it uses FFI, so there might be some bad
memory
Sorry, forgot to say that I was using GHC 6.4.2 the first time, and
ghc-6.4.3.20060816 this time.
Frederik
On Mon, Aug 21, 2006 at 10:45:40PM +0100, Frederik Eaton wrote:
Hi,
I'm seeing some odd data corruption in a log file. Below, the second
line should be a SQL query (prefixed
Here's another example of the same bug:
$ ghc -O3 -threaded -package Futility --make scmp.hs -o scmp install scmp
~/bin/
Chasing modules from: scmp.hs
Skipping Engines ( ./Engines.hs, ./Engines.o )
Skipping SCmp
On Thu, Aug 17, 2006 at 05:23:53PM +0100, Malcolm Wallace wrote:
Frederik Eaton [EMAIL PROTECTED] wrote:
I've been thinking that it would be nice if I could give ghci on
the command line a list of commands to run initially when it
starts.
GHCi can read commands from a .ghci
http://www.haskell.org/ghc/download.html
and try that?
Simon
| -Original Message-
| From: Frederik Eaton [mailto:[EMAIL PROTECTED]
| Sent: 16 August 2006 15:48
| To: Simon Peyton-Jones
| Subject: Re: impossible happened: splitTyConApp a{tv i6hr}
|
| Here:
|
| http
I've attached the code.
Skipping Vector ( Vector.hs, dist/build/Vector.o )
Compiling Vector.General ( ./Vector/General.hs, dist/build/Vector/General.o
)
./Vector/General.hs:29:0:
Warning: No explicit method nor default method for `vectorUpdate'
In the
Hi,
I've been thinking that it would be nice if I could give ghci on the
command line a list of commands to run initially when it starts. This
way, I could make shell aliases to invoke ghci with project-specific
configurations, with the appropriate modules loaded automatically.
Is something like
I've been thinking that it would be nice if I could give ghci on the
command line a list of commands to run initially when it starts. This
way, I could make shell aliases to invoke ghci with project-specific
configurations, with the appropriate modules loaded automatically.
Is
Hi all,
It seems that ghc is searching for package libraries relative to the
current directory. Is that the intended behavior? ghci does the same
thing, by the way.
$ pwd
/home/frederik/GSLHaskell2
$ ghc --make ../test-proc.hs -package GSL
Chasing modules from: ../test-proc.hs
Compiling Main
Marlow wrote:
(cleaning up old mail). Frederik: did you ever get to the bottom of this?
Do you have a test case,
and should we create a ticket for it?
Cheers,
Simon
Frederik Eaton wrote:
I'm now using 6.4.2. The bug still persists, but I can't immediately
reproduce it with basic
...
here3
here4 [ here it hangs and i press ^C ]
runghc: waitForProcess: interrupted (Interrupted system call)
...
Ah yes, this is because GHCi isn't compiled with -threaded. Looks
like we've found one more reason to do that.
Can I compile ghci with -threaded myself? Or is there a
Hi Simon,
It is good that you support thread-local variables.
I have initialized a wiki page:
http://haskell.org/haskellwiki/Thread_local_storage
The main difference between my and your proposals, as I see it, is
that your proposal is based on keys which can be used for other
things.
I think
On Tue, Aug 08, 2006 at 04:21:06PM +0300, Einar Karttunen wrote:
On 07.08 13:16, Frederik Eaton wrote:
How would this work together with the FFI?
It wouldn't, at least I wouldn't care if it didn't.
Suddenly breaking libraries that happen to use FFI behind your
back does not seem like
Furthermore, can we move this thread from the Haskell mailing list
(which should not have heavy traffic) to either Haskell-Café, or
the libraries list?
Sure, moving to haskell-cafe.
Frederik
--
http://ofb.net/~frederik/
___
Haskell mailing list
Furthermore, can we move this thread from the Haskell mailing list
(which should not have heavy traffic) to either Haskell-Café, or
the libraries list?
Sure, moving to haskell-cafe.
Frederik
--
http://ofb.net/~frederik/
___
Haskell-Cafe mailing
On Sun, Aug 06, 2006 at 01:36:15PM +0300, Einar Karttunen wrote:
On 06.08 02:41, Frederik Eaton wrote:
Also, note that my proposal differs in that thread local variables are
not writable, but can only be changed by calling (e.g. in my API)
'withIOParam'. This is still just as general
Maybe I'm misunderstanding your position - maybe you think that I
should use lots of different processes to segregate global state into
separate contexts? Well, that's nice, but I'd rather not. For
instance, I'm writing a server - and it's just not efficient to use a
separate process for
As said before the monadic approach can be quite clean. I haven't used
implicit parameters that much, so I won't comment on them.
Perhaps you can give an example? As I said, a single monad won't
suffice for me, because different libraries only know about different
parts of the
Hi Robert,
I looked over your proposal.
I'm not sure if I'm in favor of introducing a new keyword. It seems
unnecessary.
Also, note that my proposal differs in that thread local variables are
not writable, but can only be changed by calling (e.g. in my API)
'withIOParam'. This is still just as
Here is a naive and dirty implementation. The largest problem is that
TypeRep is not in Ord. An alternative approach using Dynamic would be
possible, but I like the connection between the key
and the associated type.
http://www.cs.helsinki.fi/u/ekarttun/haskell/TLS/
Not
As for the subject under discussion (thread local state), I am
personally sceptical about it. Why do we need it? Are we talking
about safety or just convenience/API elegance? I've never
encountered a situation where I've needed thread local state,
(but this does not necessarily make it
On Mon, Jul 31, 2006 at 03:09:59PM +0300, Einar Karttunen wrote:
On 31.07 03:18, Frederik Eaton wrote:
I don't think it's necessarily such a big deal. Presumably the library
with the worker threads will have to be invoked somewhere. One should
just make sure that it is invoked
On Sun, Jul 30, 2006 at 12:35:42PM +0300, Einar Karttunen wrote:
On 29.07 13:25, Frederik Eaton wrote:
I think support for thread-local variables is something which is
urgently needed. It's very frustrating that using concurrency in
Haskell is so easy and nice, yet when it comes to IORefs
On Mon, Jul 31, 2006 at 03:54:29AM +0300, Einar Karttunen wrote:
On 30.07 11:49, Frederik Eaton wrote:
No, because the thread in which it runs inherits any thread-local
state from its parent.
So we have different threads modifying the thread-local state?
If it is a copy then updates
Hi,
Sorry to bring up this thread from so long ago.
On Wed, Mar 01, 2006 at 11:53:42AM +, Simon Marlow wrote:
Ashley Yakeley wrote:
Simon Marlow wrote:
Simon I have discussed doing some form of thread-local state, which
covers many uses of implicit
parameters and is much preferable
Alberto Ruiz has developed a linear algebra library which could be
seen as an alternative to Matlab/Octave, using the GSL, ATLAS, LAPACK,
etc. IIRC.
http://dis.um.es/~alberto/GSLHaskell/
I've optimized it in some places, and added an interface which
guarantees operand conformability through the
Hi,
$ ghc -O3 --make LearnBinFactors.hs -package GSL -o lbf
Chasing modules from: LearnBinFactors.hs
Compiling Main ( LearnBinFactors.hs, LearnBinFactors.o )
ghc-6.4.2: panic! (the `impossible' happened, GHC version 6.4.2):
splitTyConApp a{tv a8EX}
I've attached the program
Attaching the file, sorry.
When I comment out line 32:
myXlogyx :: Dom a = FVector a - FVector a - FVector a
then the error goes away.
On Sun, Jun 11, 2006 at 05:32:49PM +0100, Frederik Eaton wrote:
Hi,
$ ghc -O3 --make LearnBinFactors.hs -package GSL -o lbf
Chasing modules from
=100, rn=1
res=1600.00
0x00412770
1.6e7
On Friday 02 June 2006 22:00, Frederik Eaton wrote:
I'm now using 6.4.2. The bug still persists, but I can't immediately
reproduce it with basic GSLHaskell operations, nor with raw memory
operations. It is even difficult to reproduce
Thanks, that's very handy!
But also rather obscure...
Frederik
On Mon, Jun 05, 2006 at 10:26:33PM +0300, wld wrote:
Hi,
On 6/5/06, Frederik Eaton [EMAIL PROTECTED] wrote:
Hi,
Is there a way to source a file in ghci? I have a series of
initialization commands which I would like to run
Hi,
Is there a way to source a file in ghci? I have a series of
initialization commands which I would like to run every time I do a
certain set of experiments, and I've put them in a file. Is it best
just to copy and paste the file into ghci?
Frederik
--
http://ofb.net/~frederik/
Here I'm reading a very large matrix from a file and turning it into a
template Haskell expression. Probably not the most efficient thing to
do, but the error message could be clearer...
*Main let y = $(qFast (\f - runIO $ readMatrixFile data.txt (runQ.f)));
ghc-6.4.2: panic! (the `impossible'
Hi Alberto,
I'm experiencing a problem which may be a bug in GHC. Here I take the
dot product of two vectors. I put debugging traces in the 'dotR' C
function (which I call in 'dot'), so one can see the addresses of the
memory blocks. When the vectors are below a certain size, the function
seems
On Saturday 15 April 2006 22:09, Frederik Eaton wrote:
Yes, certainly... Otherwise the library would not be much use! If it
seems counterintuitive, as it did to me at first, you should check out
the Implicit Configurations paper, which uses modular arithmetic as
an example. My version
; then
returning the function's result.
Frederik
On Sat, Apr 15, 2006 at 06:14:44PM +0200, Alberto Ruiz wrote:
On Friday 14 April 2006 17:02, Frederik Eaton wrote:
An index-aware linear algebra library in Haskell
Excellent work!
Is it possible to create a vector or matrix whose size
An index-aware linear algebra library in Haskell
I've been exploring the implementation of a library for linear
algebra, i.e. manipulating vectors and matrices and so forth, which
has as a fundamental design goal the exposure of index types and
ranges to the type system so that operand
1 - 100 of 224 matches
Mail list logo