Re: [Haskell-cafe] Inheritance without OOHaskell

2006-01-14 Thread Georg Martius
, Georg -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - pgptjsuHVMKMf.pgp Description: PGP signature ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman

Re: [Haskell-cafe] File path programme

2005-01-26 Thread Georg Martius
there. Anyone want to volunteer to create the page and list some libraries there? peace, isaac ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Georg Martius, Tel: (+49 34297) 89434

Re: [Haskell-cafe] Efficiency Question

2005-01-15 Thread Georg Martius
these operators should be more related to : like : : or similar. However, in my opinion this special cons operators could be just functions with a meaningful name like consfst and conssnd. It would provide much more readability. Cheers, Georg -- Georg Martius, Tel: (+49 34297

Re: [Haskell-cafe] Building GUIs for Haskell programs

2005-01-11 Thread Georg Martius
Software Engineer http://dapissarenko.com ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net

Re: [Haskell-cafe] Flattening tail recursion?

2004-12-10 Thread Georg Martius
mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: [Haskell-cafe] maybe IO doesn't suck, but my code does...

2004-12-05 Thread Georg Martius
mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: [Haskell-cafe] maybe IO doesn't suck, but my code does...

2004-12-03 Thread Georg Martius
lines) file. I tried different variations (readFile $ lines, openFile, openFile + IORef,...) but with no success... So, if the enclosed version is not too far, please give me a hint. Alternatively, if I took the wrong direction, please refocus my search .-) Thanks in advance, Frdric -- Georg

Re: [Haskell-cafe] Non-technical Haskell question

2004-12-03 Thread Georg Martius
and class errors and be quite difficult it does a extremly good job in my eyes. Georg -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http

[Haskell-cafe] Re: [Haskell] Re: About Random Integer without IO

2004-11-12 Thread Georg Martius
this repeatedly. Reading an initialisation file is back to the situation of using IO to generate our seed. Thanks Tom Davie ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell -- Georg Martius, Tel: (+49 34297) 89434

Re: [Haskell-cafe] OCaml list sees abysmal Language Shootout results

2004-09-30 Thread Georg Martius
Hi folks, On Thu, 30 Sep 2004 01:02:54 +0100, Sam Mason [EMAIL PROTECTED] wrote: Greg Buchholz wrote: The algorithm isn't correct (it counts spaces instead of words), but anyone have advice for improving its performance? You probably want some strictness annotations in there. . . snip Last night

Re: [Haskell-cafe] Optimization of recursion

2004-09-28 Thread Georg Martius
Hi, I am also looking for this kind of information in general, however I have done some investigations that answer some of you questions. I posted a question on this kind of optimisation recently [1], but it kept unanswered. On Tue, 28 Sep 2004 18:10:11 + (UTC), John Goerzen [EMAIL

Re: [Haskell-cafe] no dynamic binding

2004-09-19 Thread Georg Martius
on an alternative approach? thanks, -andrew ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe -- Georg Martius, Tel: (034297) 89434 --- http://www.flexman.homeip.net

Re: [Haskell-cafe] Parsec Problem

2004-07-27 Thread Georg Martius
On Mon, 26 Jul 2004 22:45:50 -0500, [EMAIL PROTECTED] wrote: Hello, I copied this example exactly from the page http://www.cs.uu.nl/people/daan/download/parsec/parsec.html -begin- module Parser where import Data.Char import Text.ParserCombinators.Parsec import

Re: [Haskell-cafe] Process properties as global values

2004-07-04 Thread Georg Martius
On Sun, 4 Jul 2004 19:17:53 +0100, Alastair Reid [EMAIL PROTECTED] wrote: I'm just wondering, why haven't process properties (such as the command line arguments, or the parent process id), which are inherently global, been made global values in the Haskell standard? You could avoid needlessly

[Haskell-cafe] Cyclic Dependencies

2004-05-12 Thread Georg Martius
Hi, I have some problems with cyclic dependencies. Module Foo: data Foo = Foo { bar :: Bar } Module Bar: class BarClass b where barfun :: b - Foo - Foo data Bar = forall b . (BarClass b) = Bar b Obviously I have to import both modules mutually. My workaround was to

[Haskell-cafe] HaRe import problem

2004-03-07 Thread Georg Martius
Hi, I have a problem with Haskell Refactoring. I use the last snapshot from 26/02/2004 and emacs. If I have a source file with an import of a libary module e.g. Text.XML.HaXml.OneOfN I get: Source files missing for (add files with 'pfe add' or 'pfe chase'): Text.XML.HaXml.OneOfN, needed by

Re: [Haskell-cafe] State Monad

2004-03-04 Thread Georg Martius
) $ do modifyT $ foo_stringgentrans lift $ modify $ foo_stringtrans Cheers, Georg On Thu, 04 Mar 2004 08:51:04 +1300, Tom Pledger [EMAIL PROTECTED] wrote: Georg Martius wrote: [...] I could write: modifyT :: ((a, String) - (a, String)) - a - State String

[Haskell-cafe] State Monad

2004-03-03 Thread Georg Martius
Hi folks, I have a question to the State Monad or Monads in general - I'am not sure. Lets assume I have functions to transform strings. I can use the State Monad as follows: strTrans :: String - String strTrans s = s ++ s f :: State String () f = do put hallo modify strTrans

MVar swap

2004-01-20 Thread Georg Martius
Hi, I took a look at the implementation of the MVar function swap and I am just woundering where the atomicy comes from. -- |Swap the contents of an 'MVar' for a new value. swapMVar :: MVar a - a - IO a swapMVar mvar new = block $ do old - takeMVar mvar putMVar mvar new return old

Re: import modules from a different directory

2003-12-11 Thread Georg Martius
moved to haskell-cafe Hi, You can give GHC with -iPath a directory where to look for modules. With -v you see where GHC actually looks for libraries. Cheers, Georg On Thu, 11 Dec 2003 15:59:04 +0800 (GMT-8), Wang Meng [EMAIL PROTECTED] wrote: Hi All, Anybody has the experience of