Hal Daume III [EMAIL PROTECTED] writes:
The gnu web page
(www.gnu.org/manual/gmp-4.0.1/html_node/gmp_70.html) claims that Haskell
(GHC) has bindings to GMP. Is this true? How can I access these
routines?
The type Integer?
Regards,
Malcolm
I should have been more specific :). I was referring to the more
complicated things, such as Lucas numbers, Binomial coefficients, etc.
--
Hal Daume III
Computer science is no more about computers| [EMAIL PROTECTED]
than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume
On
I agree; the problem is that I fear that making my own instance by using
setToList will be very inefficient (or at least much more so than an
instance which actually looks at the tree structure).
--
Hal Daume III
Computer science is no more about computers| [EMAIL PROTECTED]
than
I should have been more specific :). I was referring to the more
complicated things, such as Lucas numbers, Binomial coefficients, etc.
There isn't a full GMP binding as such. However, we do make use of more
than just the simple arithmetic in GMP - for example, Prelude.gcd on
Integers uses
On Wednesday 29. May 2002 17:07, you wrote:
With the help of the excellent new guide on porting GHC
(Thank you Simon!)
I have just created an ebuild for GHC. I thought I'd let you
know, in case
you're still working on it. I don't bootstrap GHC 5 directly
from HC files,
but GHC
setToList will be very inefficient (or at least much more so than an
instance which actually looks at the tree structure).
this would be much more difficult to design,
since one and the same set may be represented by quite different trees:
they might have been created by inserting elements
Johannes Waldmann [EMAIL PROTECTED] writes:
I find that I use Set and FiniteMap rather for reasons of clarity in
coding. This is what `you guys in industry' call `academic
programming', right :-) If speed is really an important issue, then
one would have to resort to some kind of hash table
Hi,
I have three modules which all use the same (or some of the same) %dis
directives; I'd like to pull these out into their own file (a module
called MyDIS or something), but I can't figure out how to get green-card
to look at those definitions (I've `import`ed it in the modules that need
it
Something like:
foo$ cat Foo.gc
module Foo where
import StdDIS
%dis foo x = char x
foo$ cat Bar.gc
module Bar where
import StdDIS
import Foo
%fun f :: Foo - IO ()
foo$ green-card -i/path/to/green-card/lib/ghc -tffi Bar.gc
foo$
hth
--sigbjorn
- Original Message -
From: Hal Daume III
Ah, my problem was that I was using the extension .ghs on my Foo file
and it expected .gc.
Thanks.
--
Hal Daume III
Computer science is no more about computers| [EMAIL PROTECTED]
than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume
On Wed, 29 May 2002, Sigbjorn Finne
Hi, I have three modules which all use the same (or some of the
same) %dis directives; I'd like to pull these out into their own
file (a module called MyDIS or something), but I can't figure out
how to get green-card to look at those definitions (I've `import`ed
it in the modules that need
ok, the -s option lets you expand the list of file suffixes used,
i.e., -sghc would take care of it your case.
--sigbjorn
- Original Message -
From: Hal Daume III [EMAIL PROTECTED]
To: Sigbjorn Finne [EMAIL PROTECTED]
Cc: GHC Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, May 29,
12 matches
Mail list logo