[Haskell-cafe] A bug of groupBy implement

2009-12-07 Thread L.Guo
) and GHC 6.8.3 (Linux), both give the wrong result (categaried): 7 = 3 ?: False 3 = 5 ?: True 3 = 9 ?: True 3 = 6 ?: True 3 = 8 ?: True 3 = 3 ?: True 3 = 5 ?: True 3 = 4 ?: True [[7],[3,5,9,6,8,3,5,4]] Regards -- L.Guo

[Haskell-cafe] A mistake in haskellwiki

2009-08-05 Thread L.Guo
be '.'. Anyone would correct it ? Regards -- L.Guo 2009-08-06 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] A new haskell tools project

2009-03-15 Thread L.Guo
://code.google.com/p/haskellworkingtools/ Regards -- L.Guo 2009-03-16 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Why 'round' does not just round numbers ?

2008-10-27 Thread L.Guo
6.8.3. Prelude round 3.5 4 Prelude round 2.5 2 Is there any explanation about that ? [1] The Haskell 98 Report: Predefined Types and Classes http://haskell.org/onlinereport/basic.html Regards -- L.Guo 2008-10-27 ___ Haskell

[Haskell-cafe] Re: Why 'round' does not just round numbers ?

2008-10-27 Thread L.Guo
? Or else, is there any other alter-round-function in haskell to do this ? -- L.Guo 2008-10-27 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Multi-line string literals are both easy /and/elegant in Haskell

2008-10-13 Thread L.Guo
Oh, that's so cool. But, this feather is too difficult to be configured in UE32 -- my costom IDE. Pity. Hopes I wouldn't forget it later. -- L.Guo 2008-10-14 - From: Matt Morrow At: 2008

[Haskell-cafe] Hoogle often updates ?

2008-07-07 Thread L.Guo
the hackages? I like hoogle engine. Bcuz it is a very usful tool which helps me learn haskell. Wish it better. Regards -- L.Guo 2008-07-08 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo

Re: [Haskell-cafe] Re: Haskell on ARM (was Re: ANN: Topkata)

2008-07-02 Thread L.Guo
. I can not finish building it before off work. [1] http://hackage.haskell.org/trac/ghc/wiki/Building/Porting#PortingGHCtoanewplatform -- L.Guo 2008-07-02 - From: Jeremy Shaw At: 2008-06-28

[Haskell-cafe] How does GHC read UNICODE.

2008-05-19 Thread L.Guo
-- L.Guo 2008-05-20 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] How to organize code

2008-01-27 Thread L.Guo
where pos :: o - [Position] -- Type.hs import BasicalType import Object instance Object Box where pos = return . BasicalType.pos instance Object Chain where pos = BasicalType.pos -- Main.hs import Type ... Regards -- L.Guo 2008-01-28

Re: [Haskell-cafe] How to convert number types.

2007-12-31 Thread L.Guo
Ah, thanks, it is my fault, for mis-understanding the hint from GHC. And what is the difference between fromIntegral and fromInteger ? -- L.Guo 2008-01-01 - From: Mark T.B. Carroll

[Haskell-cafe] Cross-compiling of GHC

2007-09-17 Thread L.Guo
/trac/ghc/wiki/Building/Porting -- L.Guo 2007-09-17 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Memory leak or wrong use of Array ?

2007-09-14 Thread L.Guo
-- L.Guo 2007-09-15 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Memory leak or wrong use of Array ?

2007-09-13 Thread L.Guo
) solutionOf = snd . minimum . map (\(n,phi)-(toRational n / toRational phi,n)) . filter (uncurry isPerm) . phis -- L.Guo 2007-09-14 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org

Re: [Haskell-cafe] Hints for Euler Problem 11

2007-08-17 Thread L.Guo
. (map p011_toGroups) $ p011_input -- L.Guo 2007-08-17 - From: Ronald Guida At: 2007-07-20 11:39:50 Subject: [Haskell-cafe] Hints for Euler Problem 11 To handle the diagonals, my plan is to try

[Haskell-cafe] A few questions on primes generating.

2007-08-13 Thread L.Guo
there is no error (type mismatch) of this call in func main : pureSieve 1000 3) In main again, what does expression [| x |] mean ? Why this cannot be execute in GHCi ? Thanks for any advice. Regards -- L.Guo 2007-08-13 ___ Haskell-Cafe

Re: [Haskell-cafe] A few questions on primes generating.

2007-08-13 Thread L.Guo
Because 10,000,000 is too large for a Int, it is always in type of Integer or some higher level data type. -- L.Guo 2007-08-13 - From: Alexis Hazell At: 2007-08-13 22:46:46 Subject: Re

Re: [Haskell-cafe] Haskell's currying versus Business Objects GemCutter's burning

2007-07-03 Thread L.Guo
In this case, I usually use _flip_ function. flip :: (a - b - c) - b - a - c flip f x y = f y x -- L.Guo 2007-07-04 - From: peterv At: 2007-07-03 17:40:35 Subject: [Haskell-cafe] Haskell's

Re: [Haskell-cafe] How to devide matrix into small blocks

2007-06-14 Thread L.Guo
-in-block]], and also, is close to my future purpose. Thanks. -- L.Guo 2007-06-14 - From: Janis Voigtlaender At: 2007-06-14 15:42:40 Subject: Re: [Haskell-cafe] How to devide matrix into small

Re: [Haskell-cafe] How to devide matrix into small blocks

2007-06-13 Thread L.Guo
to write tools being used in my work. This is one of them. I need to locate the difference between my coded image and standard coded image. And both coded in 16x16 macroblocks. That is why I ran into this problem. Anyway, thanks for your advice. -- L.Guo

[Haskell-cafe] How to devide matrix into small blocks

2007-06-12 Thread L.Guo
not know how to use it to write the function. Thanks for any advice. Regards -- L.Guo 2007-06-13 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Which regular syntax does Text.Regex use?

2007-06-11 Thread L.Guo
Hi All: I wrote this func : match = matchRegex . mkRegex And when using it, I found that I have not even know the syntax of Regex. Eager for your hint. Regards -- L.Guo 2007-06-11 ___ Haskell-Cafe mailing list Haskell-Cafe

[Haskell-cafe] Why this exception occurs ?

2007-05-25 Thread L.Guo
Hi. In GHCi ver 6.6, why this happens ? Prelude Data.ByteString Data.ByteString.pack $! Prelude.map (`rem` 256) $ [0..511] *** Exception: divide by zero -- L.Guo 2007-05-25 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] Why this exception occurs ?

2007-05-25 Thread L.Guo
When I was tring manually truncate data to Word8 to fill into ByteString, I got the exception. Thanks. Now I understand the reason for that exception. And I know it is no need to manually truncate data. -- L.Guo 2007-05-25

Re: [Haskell-cafe] Why this exception occurs ?

2007-05-25 Thread L.Guo
-- L.Guo 2007-05-25 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
Hi MailList Haskell-Cafe: Till now, which module / package / lib can i use to access binary file ? And is this easy to use in GHC ? Regards -- L.Guo 2007-05-24 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http

Re: [Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
? -- L.Guo 2007-05-24 - 发件人:Donald Bruce Stewart 发送日期:2007-05-24 14:03:27 收件人:L.Guo 抄送:MailList Haskell-Cafe 主题:Re: [Haskell-cafe] (no subject) leaveye.guo: Hi MailList Haskell-Cafe: Till now, which module

Re: [Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
Sorry for not familiar to the email client. My system is WinXP, and using GHC 6.6. And is read from file. Data is truncated at the ^Z char. I just wrote one simple test code. import IO writeTest fn = do h - openFile fn WriteMode mapM_ (\p - hPutChar h (toEnum p::Char)) $ [0..255] ++

Re: Re: [Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
give me some more hints ? -- L.Guo 2007-05-24 ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Re: [Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
do ? -- L.Guo 2007-05-24 - From: Donald Bruce Stewart At: 2007-05-24 17:03:55 Subject: Re: Re: [Haskell-cafe] (no subject) What are you trying to do? -- Don

Re: Re: [Haskell-cafe] (no subject)

2007-05-24 Thread L.Guo
Very thanks for your example, I have not notice that there is a group of hGetxxx functions in ByteString. In other words, I was using hGetxxx which implemented in IO module. So it always failed. -- L.Guo 2007-05-24