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
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
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
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
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
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
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
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
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
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
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
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
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
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
:[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
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.
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
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 :)
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
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
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
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
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
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
24 matches
Mail list logo