Re: [Haskell-cafe] library version problem

Hi Philip,
Before I got your email, I deregistered unix-2.3.0.0 which made my
unix-2.2.0.0 namespace changes visible. However, deregistering seems to made
other things worse, e.g. runhaskell Setup.hs configure gives an error
message "unknown parameter package: unix-2.3.0.0". Sigh .. how do I get back
to where i was in order to do a "hide"?
Kind regards, Vasili
On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver
2008/4/10 Galchin, Vasili
: Hello,
I doing work using Linux. The wrong version (for me) of the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do?
If you don't want to use it, then it's safe to hide it:
ghc-pkg hide unix-2.3.0.0
You can always unhide it later.
You can also tell ghc to use a specific version of a package:
ghc -package unix-2.2.0.0
Of course, you'll need to make sure unix-2.2.0.0 is registered with ghc-pkg.
Regards, vasili
When I do:
ghci :m System.Posix
I am getting the wrong version of the Unix package. I know this to be
because I did ghc-pkg latest unix
and got unix-2.3.0.0
I want unix.2.2.0.0 because this version has changes that I made to the unix package. libHSunix-2.2.0.0.a is installed under /usr/local/lib/unix-2.2.0.0/ghc-6.8.2 I did a "nm -a
true libHSunix-2.2.0.0.a"
and found symbols that I added.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hello,
Is there better documentation for ghc-pkg than just "help"??
Vasili
On Thu, Apr 10, 2008 at 9:36 PM, Galchin, Vasili
Hi Philip,
Before I got your email, I deregistered unix-2.3.0.0 which made my unix-2.2.0.0 namespace changes visible. However, deregistering seems to made other things worse, e.g. runhaskell Setup.hs configure gives an error message "unknown parameter package: unix-2.3.0.0". Sigh .. how do I get back to where i was in order to do a "hide"?
Kind regards, Vasili
On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver
wrote: 2008/4/10 Galchin, Vasili
: Hello,
I doing work using Linux. The wrong version (for me) of the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do?
If you don't want to use it, then it's safe to hide it:
ghc-pkg hide unix-2.3.0.0
You can always unhide it later.
You can also tell ghc to use a specific version of a package:
ghc -package unix-2.2.0.0
Of course, you'll need to make sure unix-2.2.0.0 is registered with ghc-pkg.
Regards, vasili
When I do:
ghci :m System.Posix
I am getting the wrong version of the Unix package. I know this to be
because I did ghc-pkg latest unix
and got unix-2.3.0.0
I want unix.2.2.0.0 because this version has changes that I made to
package. libHSunix-2.2.0.0.a is installed under /usr/local/lib/unix-2.2.0.0/ghc-6.8.2 I did a "nm -a
true the unix libHSunix-2.2.0.0.a"
and found symbols that I added.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

e.g. with "register" what is filename .. a path? Is this path to the .a
(archive) file on Unix systems?
On Thu, Apr 10, 2008 at 9:38 PM, Galchin, Vasili
Hello,
Is there better documentation for ghc-pkg than just "help"??
Vasili
On Thu, Apr 10, 2008 at 9:36 PM, Galchin, Vasili
wrote: Hi Philip,
Before I got your email, I deregistered unix-2.3.0.0 which made my unix-2.2.0.0 namespace changes visible. However, deregistering seems to made other things worse, e.g. runhaskell Setup.hs configure gives an error message "unknown parameter package: unix-2.3.0.0". Sigh .. how do I get back to where i was in order to do a "hide"?
Kind regards, Vasili
On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver
wrote: 2008/4/10 Galchin, Vasili
: Hello,
I doing work using Linux. The wrong version (for me) of the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do?
If you don't want to use it, then it's safe to hide it:
ghc-pkg hide unix-2.3.0.0
You can always unhide it later.
You can also tell ghc to use a specific version of a package:
ghc -package unix-2.2.0.0
Of course, you'll need to make sure unix-2.2.0.0 is registered with ghc-pkg.
Regards, vasili
When I do:
ghci :m System.Posix
I am getting the wrong version of the Unix package. I know this to
because I did ghc-pkg latest unix
and got unix-2.3.0.0
I want unix.2.2.0.0 because this version has changes that I made to
package. libHSunix-2.2.0.0.a is installed under /usr/local/lib/unix-2.2.0.0/ghc-6.8.2 I did a "nm -a
be true the unix libHSunix-2.2.0.0.a"
and found symbols that I added.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I am reading currently ..
http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html#instal...
1) Is ghc-pkg intended to be run by most Haskell developers or should
ghc-pkg be run by "higher level" tools like Cabal??
2) my package database appears to be somewhat comprised after I unregistered
unix-2.3.0.0. I can no longer build the unix package via "runhaskell". ??
Kind regards, Vasili
On Thu, Apr 10, 2008 at 9:39 PM, Galchin, Vasili
e.g. with "register" what is filename .. a path? Is this path to the .a (archive) file on Unix systems?
On Thu, Apr 10, 2008 at 9:38 PM, Galchin, Vasili
wrote: Hello,
Is there better documentation for ghc-pkg than just "help"??
Vasili
On Thu, Apr 10, 2008 at 9:36 PM, Galchin, Vasili
wrote: Hi Philip,
Before I got your email, I deregistered unix-2.3.0.0 which made my unix-2.2.0.0 namespace changes visible. However, deregistering seems to made other things worse, e.g. runhaskell Setup.hs configure gives an error message "unknown parameter package: unix-2.3.0.0". Sigh .. how do I get back to where i was in order to do a "hide"?
Kind regards, Vasili
On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver < philip.weaver@gmail.com> wrote:
Hello,
I doing work using Linux. The wrong version (for me) of
2008/4/10 Galchin, Vasili
: the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do?
If you don't want to use it, then it's safe to hide it:
ghc-pkg hide unix-2.3.0.0
You can always unhide it later.
You can also tell ghc to use a specific version of a package:
ghc -package unix-2.2.0.0
Of course, you'll need to make sure unix-2.2.0.0 is registered with ghc-pkg.
Regards, vasili
When I do:
ghci :m System.Posix
I am getting the wrong version of the Unix package. I know this to
because I did ghc-pkg latest unix
and got unix-2.3.0.0
I want unix.2.2.0.0 because this version has changes that I made to the unix package. libHSunix-2.2.0.0.a is installed under /usr/local/lib/unix-2.2.0.0/ghc-6.8.2 I did a "nm -a
be true libHSunix-2.2.0.0.a"
and found symbols that I added.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Hi Vasili, there is: http://www.haskell.org/ghc/docs/latest/html/users_guide/packages.html HTH, Ciao, Leif On Fri, April 11, 2008 4:38 am, Galchin, Vasili wrote:
Hello,
Is there better documentation for ghc-pkg than just "help"??
Vasili
On Thu, Apr 10, 2008 at 9:36 PM, Galchin, Vasili
wrote: Hi Philip,
Before I got your email, I deregistered unix-2.3.0.0 which made my unix-2.2.0.0 namespace changes visible. However, deregistering seems to made other things worse, e.g. runhaskell Setup.hs configure gives an error message "unknown parameter package: unix-2.3.0.0". Sigh .. how do I get back to where i was in order to do a "hide"?
Kind regards, Vasili
On Thu, Apr 10, 2008 at 8:22 PM, Philip Weaver
wrote: 2008/4/10 Galchin, Vasili
: Hello,
I doing work using Linux. The wrong version (for me) of the unix package seems to be visible. I see possibilities to use ghc-pkg to suppress the unix package that I don't want(2.3.0.0) but that seems dangerious. Details are below . What should I do?
If you don't want to use it, then it's safe to hide it:
ghc-pkg hide unix-2.3.0.0
You can always unhide it later.
You can also tell ghc to use a specific version of a package:
ghc -package unix-2.2.0.0
Of course, you'll need to make sure unix-2.2.0.0 is registered with ghc-pkg.
Regards, vasili
When I do:
ghci :m System.Posix
I am getting the wrong version of the Unix package. I know this to
because I did ghc-pkg latest unix
and got unix-2.3.0.0
I want unix.2.2.0.0 because this version has changes that I made to
package. libHSunix-2.2.0.0.a is installed under /usr/local/lib/unix-2.2.0.0/ghc-6.8.2 I did a "nm -a
be true the unix libHSunix-2.2.0.0.a"
and found symbols that I added.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Leif Frenzel http://leiffrenzel.de http://cohatoe.blogspot.com
participants (2)
-
Galchin, Vasili
-
Leif Frenzel