Re: [GHC] #3081: Double output after Ctrl+C on Windows

2009-03-16 Thread Neil Mitchell
system cp foo foo.bup deleteFile foo If I Ctrl+C during the cp did I just delete my one copy of foo? On Windows, Ctrl-C will unblock a blocked system call.  e.g. read() returns with zero.  Apparently system foo also returns as soon as you press Ctrl-C, I'm not entirely sure why.  Perhaps

Show instance of Ratio

2007-11-28 Thread Neil Mitchell
sense to come to some consensus which Haskell' will follow, then fix whichever set of compilers is determined to be wrong. Opinions -- The basic differing of opinions is should Show print the minimal ASCII representation (Neil Mitchell, Simon Marlow) or something that is slightly pretty

Re: [GHC] #1518: Make it possible to evaluate monadic actions when assigning record fields (-)

2007-07-09 Thread Neil Mitchell
Hi Adde, #1518: Make it possible to evaluate monadic actions when assigning record fields It is currently not possible to build records from values resulting from monadic actions while still using the field-specifiers. This is quite a significant change to the language, which isn't precise

Re: [GHC] #1278: filepath’s makeRel ative does not work for relative directories

2007-04-17 Thread Neil Mitchell
Hi I'd expect something like this: org / makeRelative org x == x or at least something like normalise (org / makeRelative org x) == normalise x at least on a best effort basis. Alas thats not true, because makeRelative can insert .. paths which can't be removed by normalise as they

Re: [GHC] #1278: filepath's makeRelative does not work for relative directories

2007-04-17 Thread Neil Mitchell
Hi Isaac, The two basic QuickCheck properties are: takeDrive x == x || makeRelative x (x `combine` y) == y isRelative x || y `combine` makeRelative y x == x What is takeDrive? The haddock mentions those properties, but I can't find any other reference to or definition of takeDrive on the

Re: [GHC] #1278: filepath’s makeRel ative does not work for relative directories

2007-04-16 Thread Neil Mitchell
Hi hmm, looking at it, makeRelative has no generalised QuickCheck properties, and all the specific instances are on absolute paths. I'll try and come up with a patch for this that does the right thing in this situation. I'd expect something like this: org / makeRelative org x == x or at

Re: [GHC] #1171: GHC doesn't respect the imprecise exceptions semantics

2007-02-28 Thread Neil Mitchell
Hi In response to Neil: why use `unsafePerformIO` rather than IO exceptions here? I think you're asking for more trouble... Are you referring to ioError? My knowledge of exceptions in Haskell is limited. The error architecture is often a long way from the IO monad, so whatever we do can't

Re: Visual Haskell's Hello, World

2007-01-02 Thread Neil Mitchell
Hi Bill, It seems trivial, but I think the contents of main.hs in the Visual Haskell default project should include a getChar: Then people will wonder why their app has stopped, and get very confused. A much better solution would be for GHC in Visual Studio to pause at the end of a console

Re: haddock's image markup doesn't work for me

2006-12-07 Thread Neil Mitchell
Hi -- | images/stock-icons/stock_about_24.png Why not: -- | images/stock-icons/stock_about_24.png I thought that was the syntax. Thanks Neil ___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org

Re: GHCi and Windows 98

2006-12-07 Thread Neil Mitchell
Hi Steven, If you are just getting started, and GHC is giving you no luck, try Hugs (in particular WinHugs) which does work on Win98. http://www.haskell.org/hugs/ Thanks Neil On 12/7/06, Steven Tinsley [EMAIL PROTECTED] wrote: Good day to you. I installed GHC 6.6 on a Windows 98 SE system

Re: [GHC] #974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either

2006-10-30 Thread Neil Mitchell
Hi #974: Add isLeft, isRight, fromLeft, fromRight, and splitEithers to Data.Either Woohoo! Finally! This proposal would add basic functionality to `Either` similar to that for `Maybe`. The `splitEithers` function of type `[Either a b] - ([a],[b])` is unique; however, it seems to be a

Re: [GHC] #870: extra commas accepted in import export lists

2006-08-20 Thread Neil Mitchell
Hi Bulat, as Duncan said, it's Good Thing. i permanently use this trick in the export lists. it's much better to change Haskell standard :) Really? I can perfectly understand that (export1, export2, ) is a useful thing to have - now that last element is not special in any way, and so if

Incomplete documentation

2006-08-20 Thread Neil Mitchell
Hi, Taking a look at: http://haskell.org/ghc/docs/latest/html/libraries/base/GHC-ConsoleHandler.html#v%3AinstallHandler On Windows this has the members: data ConsoleEvent = ControlC | Break | Close | Logoff | Shutdown data Handler = Default | Ignore | Catch (ConsoleEvent - IO ()) flushConsole

Re: [GHC] #840: GHC on loosing its handles takes 100% CPU

2006-08-11 Thread Neil Mitchell
Hi I'm not doubting that it's genuine -- but can anyone make a reproducible test case? The test case I put in the bug report makes it 100% reproducable on both my machines. I guess that means its a machine specific bug. Thanks Neil Simon | -Original Message- | From: [EMAIL

Re: unsafeCoerce#

2006-07-31 Thread Neil Mitchell
:[EMAIL PROTECTED] | On Behalf Of Neil Mitchell | Sent: 31 July 2006 00:45 | To: glasgow-haskell-bugs@haskell.org | Subject: unsafeCoerce# | | Hi, | | Finding unsafeCoerce# in the documentation is challenging at best. | It's not indexed by Haddock, which in turn means its not indexed by | Hoogle

unsafeCoerce#

2006-07-30 Thread Neil Mitchell
Hi, Finding unsafeCoerce# in the documentation is challenging at best. It's not indexed by Haddock, which in turn means its not indexed by Hoogle. Lambdabot doesn't find it. Googling gave me GhcExts (from an old Happy file), which I guessed at GHC.Exts. Someone in #haskell suggested GHC.Base.

GHCi on loosing its handles takes 100% CPU

2006-07-29 Thread Neil Mitchell
Hi On Windows, GHC 6.4.2, the following program: import System.Process main = runInteractiveCommand ghc When run terminates immediately, as expected, but leaves an instance of ghc running. The ghc process takes up 100% of the CPU time, and seemingly does nothing. If ghci is used as the

forkIO and not -threaded

2006-07-28 Thread Neil Mitchell
Hi, main = do forkIO $ print yes print done Compiled without -threaded, on 6.2.2 gives yes done on 6.4.2 done Seems the semantics of forkIO in this case has changed completely? Of course, I actually wanted -threaded and had forgot it, so I'm entirely happy if it just raises an error :)

Missing haddock documentation

2006-07-03 Thread Neil Mitchell
Hi, I'm not sure if anyone has noticed already, but the module documentation has gone missing: Linked to from here: http://haskell.org/ghc/docs/latest/html/libraries/index.html Does not exist: http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html Hoogle relies on these libraries

Bug: Windows, -o, --make and relinking

2006-06-04 Thread Neil Mitchell
Hi, GHC 6.4.2 doesn't normally relink when invoked with --make if the target file has not changed. This is very very useful! Create a Main.hs, and compile with ghc --make twice, first time it compiles, second time it does nothing. Compile with ghc --make -o file.exe twice, first time it

File remains locked after crash

2006-05-03 Thread Neil Mitchell
Hi, On Windows, using GHCi 6.4.2, its possible to lock files open: Change to a directory and run, at the prompt, with a file called test2.txt already created: writeFile test1.txt (error fail) or readFile test2.txt putStrLn (error fail) The file test.txt is created, for the first. In both

Show Bug (I think)

2006-04-30 Thread Neil Mitchell
Hi, --- data Item = Item1 Item | Item2 {a :: Int} deriving (Show, Read) value = Item1 (Item2 1) valueHugs = Item1 Item2 {a = 1} valueGhc = Item1 (Item2 {a = 1}) readItem x = (read x) :: Item -- With the following code show value under Hugs and Ghc give different

Re: Segfault on Windows

2006-04-27 Thread Neil Mitchell
Hi It doesn't crash for me, but I get an error message: With the stock 6.4.2 I get the same error as yours. Sorry, I was on holiday and had missed the fact that 6.4.2 was out :) Thanks Neil ___ Glasgow-haskell-bugs mailing list

Segfault on Windows

2006-04-26 Thread Neil Mitchell
Hi, I can reliably get ghc to crash on windows: AppName: ghc.exe AppVer: 0.0.0.0 ModName: unknown ModVer: 0.0.0.0 Offset: Code: 0xc005 This is using both ghc 6.4.1 and ghc-6.4.2.20060329-i386-unknown-mingw32.tar on Windows XP. The way I am getting this to occur