[Haskell-cafe] Operator #

2010-12-09 Thread c8h10n4o2
What does # mean in this code ? (from Data.List) findIndices p ls = loop 0# ls where loop _ [] = [] loop n (x:xs) | p x = I# n : loop (n +# 1#) xs | otherwise = loop (n +# 1#) xs -- View this

[Haskell-cafe] qtHaskell signal and slots

2010-11-27 Thread c8h10n4o2
I have the following code that tries to resize window after a click. But nothing happens. If I use a builtin slot that does not need a function, such as close, quit it works, however for any other slot it seems my function is ignored. Which slot/signal should I use and how? module Main where

[Haskell-cafe] GUI Designer

2010-11-18 Thread c8h10n4o2
There's a tutorial on how to use qtDesigner with qtHaskell ? Or how to use XRC files with wxHaskell? -- View this message in context: http://haskell.1045720.n5.nabble.com/GUI-Designer-tp3271441p3271441.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

[Haskell-cafe] Re: Haskell Helper

2010-10-08 Thread c8h10n4o2
I was able to parse function definition, but function call still is a problem, -- View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-Helper-tp3093854p3205482.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

[Haskell-cafe] Re: Haskell Helper

2010-10-04 Thread c8h10n4o2
And why b - between (char ',') (char '=') (sepBy alphaNum (char ',') ) does not return [String] ? -- View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-Helper-tp3093854p3198511.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

[Haskell-cafe] Re: Haskell Helper

2010-10-04 Thread c8h10n4o2
I read the parsec documentation and saw my mistake. By the way, there is a parser that returns [String] for my case? -- View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-Helper-tp3093854p3198573.html Sent from the Haskell - Haskell-Cafe mailing list archive at

[Haskell-cafe] Re: Haskell Helper

2010-10-03 Thread c8h10n4o2
No, it is not secret. I'm having trouble to define functions. Take a look at my code(please be gentle) http://haskell.1045720.n5.nabble.com/file/n3100036/hai1.hs hai1.hs -- View this message in context: http://haskell.1045720.n5.nabble.com/Haskell-Helper-tp3093854p3100036.html Sent from the

[Haskell-cafe] Re: Haskell Helper

2010-10-03 Thread c8h10n4o2
The problem is there. A function in Hai would be function-name, arg1,argn=body. Func stores function name,arguments and body as Strings(I was thinking to put Func String String String). The parser func that I wrote so far try to parse a function definition, not a function call. But when I try to