---- Test.hs ----

module Main where
    main = putStr "Hello, world"

-----------------

Executing it...

C:\Data\Hugs>hugs -Q test.hs
Hello, world
C:\Data\Hugs>hugs -Q .\test.hs
Hello, world
C:\Data\Hugs>hugs -Q \DATA\Hugs\test.hs
hugs +Q: compilation failed -- can't run `main'

C:\Data\Hugs>hugs -Q ..\Hugs\test.hs
Hello, world
C:\Data\Hugs>hugs -Q ..\..\DATA\Hugs\test.hs
Hello, world
C:\Data\Hugs>hugs -Q C:\DATA\Hugs\test.hs
hugs +Q: compilation failed -- can't run `main'

??? Why don't absolute paths work?

It's not just -Q either.

C:\Data\Hugs>hugs C:\DATA\Hugs\test.hs
__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      STGHugs: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-1999
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: [EMAIL PROTECTED]
||   || Version: STGHugs-991125 _________________________________________

ERROR: Can't file source for module "C:\DATA\Hugs\test"

FATAL ERROR: Unable to load prelude

Reply via email to