#1281: runghc, runhaskell invoke wrong ghc when not first ghc in PATH
--------------------------+-------------------------------------------------
Reporter: Isaac Dupree | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.8.3
Component: Compiler | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Linux |
--------------------------+-------------------------------------------------
Comment (by igloo):
Replying to [comment:9 simonmar]:
> Replying to [comment:8 igloo]:
> > I think symlinks are the best way forward here. Is there a reason we
don't use a symlink for ghci?
>
> No symlinks on Windows, but perhaps we could use symlinks on Un*x. The
symlink would have to point to the wrapper script that invokes the GHC
binary, so the cleverness might have to be in the script, not GHC itself.
Oh, right, because we still need to pass the right -B flag. So symlinks
won't work for runghc, as the #! line will still point to a script.
So I think that that reduces our options to either leaving things as they
are, or requiring that people use `#!/usr/bin/env runhaskell` if they want
to make Haskell scripts.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1281#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs