Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Olivier Boudry
On 11/16/07, Duncan Coutts [EMAIL PROTECTED] wrote: On Thu, 2007-11-15 at 21:55 -0500, Olivier Boudry wrote: By the way, what's the reason dropSpaceEnd is defined but not exported nor used through a rule? I'm just curious. We decided when trying to standardise the API to start with just

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Duncan Coutts
On Thu, 2007-11-15 at 21:55 -0500, Olivier Boudry wrote: By the way, what's the reason dropSpaceEnd is defined but not exported nor used through a rule? I'm just curious. We decided when trying to standardise the API to start with just the equivalents of the Data.List functions. We have

Re[2]: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Bulat Ziganshin
Hello Duncan, Friday, November 16, 2007, 2:43:05 PM, you wrote: Alternatively, someone should make the case for why it should be added to bytestring but not list. the reason is very simple - FPS lib is upgradeable, so there is no problems if its various versions are not compatible with each

[Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Olivier Boudry
Hi all, I'm writing a Haskell program to do some address cleansing. The program uses the ByteString library. Data.ByteString.Char8 documentations shows functions for removing whitespace from start or end of a ByteString. Those functions are said to be more efficient than the dropWhile / reverse

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-16 Thread Olivier Boudry
On 11/15/07, Don Stewart [EMAIL PROTECTED] wrote: Let me know if the rule fires. If it isn't, that's a bug, essentially. -- Don Don, As you can see the rule fires. C:\Tempghc --make -O2 -fasm -ddump-simpl-stats DropSpaceTest.hs ... 3 RuleFired 1 FPS pack/packAddress 2 FPS

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-15 Thread Don Stewart
olivier.boudry: Hi all, I'm writing a Haskell program to do some address cleansing. The program uses the ByteString library. Data.ByteString.Char8 documentations shows functions for removing whitespace from start or end of a ByteString. Those functions are said to be

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-15 Thread Olivier Boudry
Hi Don, In fact I'm not really looking at performance, I don't expect performance to be a big issue in my application. I was just looking at using some simple functions found in the documentation and avoid redefining them. In fact dropSpace and dropSpaceEnd are doing exactly what I'm looking

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-15 Thread Don Stewart
olivier.boudry: Hi Don, In fact I'm not really looking at performance, I don't expect performance to be a big issue in my application. I was just looking at using some simple functions found in the documentation and avoid redefining them. In fact dropSpace and

Re: [Haskell-cafe] dropSpace not exported in ByteString

2007-11-15 Thread Don Stewart
olivier.boudry: On 11/15/07, Don Stewart [EMAIL PROTECTED] wrote: Let me know if the rule fires. If it isn't, that's a bug, essentially. -- Don Don, As you can see the rule fires. C:\Tempghc --make -O2 -fasm -ddump-simpl-stats DropSpaceTest.hs ... 3