Re: Re: 6.4.3 and threaded RTS problems

2006-08-27 Thread David Kirkman
I ran the testsuite against the current HEAD (as of saturday afternoon) and had far fewer failures. Is the last week's work supposed to have fixed so many test cases? Or are different machines giving different results? The tests that resulted in unexpected failures for greg were all run on my

Re: [Haskell] Exists any null instruction in Haskell?

2006-08-27 Thread L. J.
On 8/27/06, Neil Mitchell [EMAIL PROTECTED] wrote: [Moving to haskell-cafe] Hi, I want to know if it exists a null instruction (a instruction that do anything Not really, since instructions don't do anything anyway - they only compute values. If you are in the IO monad then return () is

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
On 8/27/06, John Hughes [EMAIL PROTECTED] wrote: Hi, I use the operation 'readFile' for obtain information locates on a file. When I try to write another information on the same file, I obtain this error message: openFile: permision denied. I found this: The readFile operation holds a

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Udo Stenzel
L. J. wrote: Hi, I use the operation 'readFile' [...] How can I break that semi-closed handle for to write in the preaviously readed file? Thank you. Not at all. But you can get the same effect you get from 'readFile' if you use 'openFile' and 'hGetContents'. If you do the latter, you can

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
On 8/27/06, L. J. [EMAIL PROTECTED] wrote: On 8/27/06, John Hughes [EMAIL PROTECTED] wrote: Hi, I use the operation 'readFile' for obtain information locates on a file. When I try to write another information on the same file, I obtain this error message: openFile: permision denied. I

Re: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread L. J.
On 8/27/06, Donald Bruce Stewart [EMAIL PROTECTED] wrote: djsenda: Hi, I use the operation 'readFile' for obtain information locates on a file. When I try to write another information on the same file, I obtain this error message: openFile: permision denied. I found this: The readFile

Re[2]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Bulat Ziganshin
Hello L., Sunday, August 27, 2006, 12:43:24 PM, you wrote: length s `seq` writeFile f (hello++s) length mates_str `seq` return () it's the same. i recommend you to use: return $! tail mates_str $! defined as f$!x = x `seq` f x 'tail' should be slightly faster than 'len' -- Best

Re: Re[2]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Udo Stenzel
Bulat Ziganshin wrote: length mates_str `seq` return () it's the same. i recommend you to use: return $! tail mates_str 'tail' should be slightly faster than 'len' ...but also slightly less correct. You probably meant 'last'. (But it's still an ugly and dangerous programming

Re[4]: [Haskell] [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Bulat Ziganshin
Hello John, Sunday, August 27, 2006, 5:45:21 PM, you wrote: return $! tail mates_str But you need to evaluate the result of readFile all the way to the end--you need to use a function that traverses the entire file contents. Otherwise the file will be left open to read the bit you haven't

[Haskell] AutoForms release 0.2

2006-08-27 Thread Mads Lindstrøm
Hi all Haskeleers I am pleased to announce AutoForms release 0.2. AutoForms is a library to ease the creation of Graphical User Interfaces (GUI). It does this by using generic programming (SYB) to construct GUI components. See the full description at http://autoforms.sourceforge.net/ . Any

[Haskell] ANNOUNCE: Haddock/GHC SoC project over

2006-08-27 Thread David Waern
Hi everyone, Here is a short status report of the Port Haddock to use GHC Summer of Code project, which is now over. Part 1), the GHC modifications, are finished and will be included in the GHC head repository as soon we have made sure that they don't cause any significant slowdowns. Part 2),

[Haskell] Optimistic Evaluation?

2006-08-27 Thread Lajos Nagy
Hi, I remember once reading a paper by SPJ about Optimistic Evaluation that is somewhere between lazy and strict. If I remember correctly, they even implemented it in GHC. Now, it seems that current version of GHC doesn't support optimistic evaluation (not even as an optional feature), so my

[Haskell] Re: [Haskell - I/O] Problem with 'readFile'

2006-08-27 Thread Benjamin Franksen
L. J. wrote: Hi, I use the operation 'readFile' for obtain information locates on a file. When I try to write another information on the same file, I obtain this error message: openFile: permision denied. I found this: The readFile operation holds a semi-closed handle on the file until the

Re: [Haskell] Optimistic Evaluation?

2006-08-27 Thread Ian Lynagh
On Sun, Aug 27, 2006 at 05:51:34PM -0400, Lajos Nagy wrote: I remember once reading a paper by SPJ about Optimistic Evaluation that is somewhere between lazy and strict. If I remember correctly, they even implemented it in GHC. Now, it seems that current version of GHC doesn't support

Re: [Haskell-cafe] Derived Read instance for types with infix constructors (ghc 6.4.1)

2006-08-27 Thread Daniel Fischer
Am Sonntag, 27. August 2006 01:02 schrieb Daniel Fischer: Extremely odd, today ghc 6.4.2 (also on linux) works for me, too: Prelude InfixR show (A `And` A) A `And` A Prelude InfixR show (And A A) A `And` A Prelude InfixR read (show (And A A)) :: T A `And` A Prelude InfixR read And A A ::