Am I looking in the wrong place
(http://haskell.org/ghc/docs/latest/html/libraries/ ) or
just not seeing it, but I was hoping there would be a
math library for Haskell that would include, e.g.,
a Gamma function and the like.
-L
--
___
Haskell mailing l
Is it possible to define Y in Haskell (pref' H98) --
and get it to pass type checking?
--
E.g. As in SML
let
datatype 'a rt = recrt of ('a rt) -> 'a;
fun Y G= let fun Ggg (recrt g) n = G(g (recrt g))n
in Ggg (recrt Ggg)
end;
fun F f n = if n=0 then 1 else n*f(n-1
I am looking at running Haskell code from within
gnumeric, the opensource spreadsheet -- it's good.
Gnumeric is written in C, using those "autogen" etc. tools, and
has quite a nice plugin mechanism, but it does rather rely on whatever
compiler is used for the plugin to produce a shared object,
whi
$< -o $@
$(HSCOMPILE) -DPIC $(INCLUDES) -c $< -o $@
...
A gnu'eric plugin gets dynamically loaded, as I
understand it, when a particular one is required.
Lloyd
--
Lloyd ALLISON, CSSE, Monash University, Victoria, Australia 3800.
web: http://www.csse.monash.edu.au/~lloyd/tel: +61
bo/plugins/haskell/plugin.so:
undefined symbol: GHCziInt_I8zh_con_info
Lloyd
--
Lloyd ALLISON, CSSE, Monash University, Victoria, Australia 3800.
web: http://www.csse.monash.edu.au/~lloyd/tel: +61 3 9905 5205
use: http://www.linux.org/ OpenOffice: http://www.openoffice.org/
PS. [*] Not a royal we
be some echo of a similar question in the mailing list.
Lloyd
--
Lloyd ALLISON, CSSE, Monash University, Victoria, Australia 3800.
web: http://www.csse.monash.edu.au/~lloyd/tel: +61 3 9905 5205
use: http://www.linux.org/ OpenOffice: http://www.openoffice.org/
__
small numbers of changes.)
Lloyd
--
Lloyd ALLISON, CSSE, Monash University, Victoria, Australia 3168.
web: http://www.csse.monash.edu.au/~lloyd/tel: +61 3 9905 5205
use: http://www.linux.org/ OpenOffice: http://www.openoffice.org/
___
Haskell
;,
so that one can define sub-classes of Function
(e.g. functions having inverses, say) that can still
be applied in the usual way, i.e. ``f x''.
Lloyd
PS. [How] can one make ``->'' an instance of some new class?
--
Lloyd ALLISON, CSSE, Monash University, Victoria, Au