Re: [Haskell-cafe] In-place modification

Bulat Ziganshin wrote:
Hello Andrew,
Monday, July 9, 2007, 12:36:25 AM, you wrote:
OK. So that's just the GHC binary itself, right?
it's INSTALLER
Ah. That explains the size then... Is it safe to install two versions of GHC at once? :-.

On Mon, Jul 09, 2007 at 10:01:06PM +0100, Andrew Coppin wrote:
Bulat Ziganshin wrote:
Hello Andrew,
Monday, July 9, 2007, 12:36:25 AM, you wrote:
OK. So that's just the GHC binary itself, right?
it's INSTALLER
Ah. That explains the size then...
Is it safe to install two versions of GHC at once? :-.
Certainly. I have no less than twelve. stefan@stefans:~$ ls -l /usr/bin/ghc-6* /usr/local/bin/ghc-6* lrwxrwxrwx 1 root root 30 2007-05-26 08:50 /usr/bin/ghc-6.6.1 -> ../lib/ghc-6.6.1/bin/ghc-6.6.1 -rwxr-xr-x 1 root staff 385 2006-12-24 13:43 /usr/local/bin/ghc-6.4.2 -rwxr-xr-x 1 root staff 145 2007-01-13 16:52 /usr/local/bin/ghc-6.7 -rwxr-xr-x 1 root staff 172 2007-02-13 18:20 /usr/local/bin/ghc-6.7.20070213 -rwxr-xr-x 1 root staff 172 2007-02-24 01:29 /usr/local/bin/ghc-6.7.20070223 -rwxr-xr-x 1 root staff 172 2007-03-25 19:53 /usr/local/bin/ghc-6.7.20070323 -rwxr-xr-x 1 root staff 172 2007-04-01 14:04 /usr/local/bin/ghc-6.7.20070402 -rwxr-xr-x 1 root staff 172 2007-04-14 10:35 /usr/local/bin/ghc-6.7.20070413 -rwxr-xr-x 1 root staff 172 2007-05-02 18:46 /usr/local/bin/ghc-6.7.20070502 -rwxr-xr-x 1 root staff 172 2007-05-19 16:01 /usr/local/bin/ghc-6.7.20070518 -rwxr-xr-x 1 root staff 172 2007-06-02 23:41 /usr/local/bin/ghc-6.7.20070601 -rwxr-xr-x 1 root staff 144 2007-06-12 20:20 /usr/local/bin/ghc-6.7.20070612 The worst problem that comes of this is a slow loss of disk space, but I don't think I'll ever be able to fill this 80G disk :) Stefan

Stefan O'Rear wrote:
On Mon, Jul 09, 2007 at 10:01:06PM +0100, Andrew Coppin wrote:
Is it safe to install two versions of GHC at once? :-.
Certainly. I have no less than twelve.
stefan@stefans:~$ ls -l /usr/bin/ghc-6* /usr/local/bin/ghc-6* lrwxrwxrwx 1 root root 30 2007-05-26 08:50 /usr/bin/ghc-6.6.1 -> ../lib/ghc-6.6.1/bin/ghc-6.6.1 -rwxr-xr-x 1 root staff 385 2006-12-24 13:43 /usr/local/bin/ghc-6.4.2 -rwxr-xr-x 1 root staff 145 2007-01-13 16:52 /usr/local/bin/ghc-6.7 -rwxr-xr-x 1 root staff 172 2007-02-13 18:20 /usr/local/bin/ghc-6.7.20070213 -rwxr-xr-x 1 root staff 172 2007-02-24 01:29 /usr/local/bin/ghc-6.7.20070223 -rwxr-xr-x 1 root staff 172 2007-03-25 19:53 /usr/local/bin/ghc-6.7.20070323 -rwxr-xr-x 1 root staff 172 2007-04-01 14:04 /usr/local/bin/ghc-6.7.20070402 -rwxr-xr-x 1 root staff 172 2007-04-14 10:35 /usr/local/bin/ghc-6.7.20070413 -rwxr-xr-x 1 root staff 172 2007-05-02 18:46 /usr/local/bin/ghc-6.7.20070502 -rwxr-xr-x 1 root staff 172 2007-05-19 16:01 /usr/local/bin/ghc-6.7.20070518 -rwxr-xr-x 1 root staff 172 2007-06-02 23:41 /usr/local/bin/ghc-6.7.20070601 -rwxr-xr-x 1 root staff 144 2007-06-12 20:20 /usr/local/bin/ghc-6.7.20070612
The worst problem that comes of this is a slow loss of disk space, but I don't think I'll ever be able to fill this 80G disk :)
...OK...and when you tell GHC to compile something, exactly which compiler does it run? o_O

Hi
The worst problem that comes of this is a slow loss of disk space, but I don't think I'll ever be able to fill this 80G disk :)
...OK...and when you tell GHC to compile something, exactly which compiler does it run? o_O
It picks whichever one you have first on your $(PATH). On linux you can do:
which ghc c:\path\to\ghc
Thanks Neil

Neil Mitchell wrote:
Hi
...OK...and when you tell GHC to compile something, exactly which compiler does it run? o_O
It picks whichever one you have first on your $(PATH).
...right. Presumably this is isomorphic to "whichever one was installed the most recently"? (Oh, wait... IIRC, on Windoze the GHC installer doesn't actually add GHC to the PATH variable. You have to do it by hand...)
On linux you can do:
which ghc c:\path\to\ghc
Ah, true...

On Tue, Jul 10, 2007 at 08:10:32PM +0100, Andrew Coppin wrote:
Neil Mitchell wrote:
...OK...and when you tell GHC to compile something, exactly which compiler does it run? o_O
It picks whichever one you have first on your $(PATH).
...right. Presumably this is isomorphic to "whichever one was installed the most recently"?
Yes. Stefan

Hi
It picks whichever one you have first on your $(PATH).
...right. Presumably this is isomorphic to "whichever one was installed the most recently"?
(Oh, wait... IIRC, on Windoze the GHC installer doesn't actually add GHC to the PATH variable. You have to do it by hand...)
It does. Thanks Neil
participants (3)
-
Andrew Coppin
-
Neil Mitchell
-
Stefan O'Rear