[Haskell] math library for Haskell

2007-07-25 Thread Lloyd Allison
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

[Haskell] Y in haskell?

2005-04-17 Thread Lloyd Allison
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

[Haskell] Re: Making a spreadsheet with Haskell (S.J.Thompson)

2004-02-14 Thread Lloyd Allison
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

Re: ghc, FFI and autotools

2003-11-24 Thread Lloyd Allison
$< -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

ghc, FFI and autotools

2003-11-21 Thread Lloyd Allison
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

Is there Haskell with a spreadsheet and/or Python?

2003-09-17 Thread Lloyd Allison
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/ __

Re: diff in Haskell?

2002-11-21 Thread Lloyd Allison
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

class Function ?

2002-10-28 Thread Lloyd Allison
;, 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