Records (was Re: [Haskell] Improvements to GHC)

2005-11-20 Thread Georg Martius
ch doesn't obfuscate your code? I use > >($) way more often than (.). Some people do use it more often than I > > I found it useful to use (mainly for debugging purposes) > > mapM (putStrLn . show) > > if I want to print its elements each on a new line. >

[Haskell] Read Instances for Data.Map and Data.Set

2005-10-19 Thread Georg Martius
t;}" -> return [] "," | started -> setNext _ -> pfail setNext = do x <- reset readx xs <- setRest True return (x:xs) -- Georg Martius, Tel: (+49 34297) 89434 ---

[Haskell] HaXml ANYContent

2005-08-10 Thread Georg Martius
w the type yet. Therefore we put everything in Unparsed field. Later on one can use a Parser on that explicitly. It would also make the roundtrip XML->Haskell ->XML more stable. Cheers, Georg -- Georg Martius, Tel: (+49 34297) 89434 --- http://ww

Re: [Haskell] announce: wxhaskell 0.9

2005-03-16 Thread Georg Martius
list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - configure_0.8_ghc6.4.diff Description: Binary data configure_0.9_ghc6.4.diff Description: Binary data makefile.lib_0.8

[Haskell] Typeable and Data instances for Double, FiniteMap, ...

2005-01-16 Thread Georg Martius
`f` (fmToList fm) toConstr _= fmConstr fromConstr c = case conIndex c of 1 -> emptyFM dataTypeOf _ = fmDataType -- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - ___

[Haskell] Help on Arrows

2005-01-15 Thread Georg Martius
do let x = evaluateArrow $ MyAdd1A 1 print x Please enlighten me! Georg [1] http://www.haskell.org/ghc/docs/latest/html/libraries/base/Control.Arrow.html#2 [2] http://haskell.org/hawiki/UnderstandingArrows [3] http://www.haskell.org/arrows/ -- Georg Martius, Tel: (+49 34297

Re: [Haskell] Haskell-mode 2.0

2004-11-26 Thread Georg Martius
On Fri, 26 Nov 2004 16:38:26 -0500, Stefan Monnier <[EMAIL PROTECTED]> wrote: thanks for you work! The indentation works much better than before. However, I have some feature requests/bugs: - indentation in do monad: lines after "let" should have 2 possible indentations. One for new let bindings

Re: [Haskell] Haskell-mode 2.0

2004-11-26 Thread Georg Martius
ng with things like \(x,y) should work correctly now. * New maintainer <[EMAIL PROTECTED]>. ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell -- Georg Martius, Tel: (+49 34297) 89

Re: [Haskell] About Random Integer without IO

2004-11-11 Thread Georg Martius
(1, n) return x I need this but with types :: Integer -> Integer Thanks Escapadas, fines de semana, vacaciones, reservas. Organiza y contrata tus viajes aquƃ. ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haske

Re: [Haskell] Question about Infix/Postfix Operators in Haskell

2004-10-18 Thread Georg Martius
ion as an infix: Times2:: x = x Plus x Times2:: x = x `Plus` x Best regards! Georg -- ---- Georg Martius, Tel: (+49 34297) 89434 --- http://www.flexman.homeip.net - ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Re: [Haskell] optimisation of State monad

2004-09-29 Thread Georg Martius
inside the iteration. Tricky lazyness! I didn't look at the state stuff. Well, without profiling and -G1 I get other results (see below), however they are still bad. Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Georg Martius | Sent: 21

[Haskell] optimisation of State monad

2004-09-21 Thread Georg Martius
Hi folks, I have two questions to tail recursion, optimisation(ghc) and the State monad. Sorry about bothering you with efficiency issues, but they become crusual to me since my programm needs more memory than I have :-( I compiled the following small examples with ghc -O6 -Wall -prof -auto-all -

[Haskell] GHC writes to stderr

2004-08-19 Thread Georg Martius
Hi folks, I am just wondering why ghc writes its output to stderr instead of stdout. In case of an error it might be reasonably but all the ordinary information about chaising and stuff should go to a buffered stream I think. Why do I care? I start ghc from emacs in a compile window. The output g

Re: [Haskell] Monadic Loops

2004-06-17 Thread Georg Martius
actually force it to. In case your condition (cond) doesn't force the evaluation of all transformations you get large unevaluated stuff in you memory. Is there a better way to implement (possibly infinite) loops in Haskell? I' am curious as well! Cheers, Georg -- Georg Martius, Te

Re: [Haskell] Annoying naming clashes

2004-06-15 Thread Georg Martius
On Tue, 15 Jun 2004 12:05:46 +0100, Graham Klyne <[EMAIL PROTECTED]> wrote: At 11:30 15/06/04 +0200, Wolfgang Jeltsch wrote: I'd say, classes in Haskell are similar to interfaces in Java. I started my Haskell programming with that viewpoint, but got tripped up by it. A Java interface can be used as

Re: A question about monads

2003-11-11 Thread Georg Martius
Hi, just use the "<-" in the Monad like ... do t <- f -- where f has the type IO(Something) -- use t which is of type Something ... return t -- makes an IO(Something) Btw: This thread might fit better to the haskell-cafe list. Georg On Tue, 11 Nov 2003 00:37:54