Package version question with Cabal

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Package version question with Cabal

Volker Wysk-5
Hi!

I've uploaded my library to Hackage, and now I'm trying to install it via
cabal:

~/src/hsshellscript $ cabal install
Resolving dependencies...
In order, the following will be installed:
hsshellscript-3.3.3 (reinstall)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring hsshellscript-3.3.3...
Building hsshellscript-3.3.3...
Preprocessing library hsshellscript-3.3.3...
In-place registering hsshellscript-3.3.3...
Creating package registration file: /tmp/pkgConf-hsshellscript-3.37397.3
Installing library in
/home/v/.cabal/lib/x86_64-linux-ghc-7.8.3/hsshellscript-3.3.3
Registering hsshellscript-3.3.3...
Installed hsshellscript-3.3.3

~/src/hsshellscript $ cabal list hsshellscript
* hsshellscript
    Synopsis: Haskell for Unix shell scripting tasks
    Default available version: 3.3.2
    Installed versions: 3.3.1, 3.3.2, 3.3.3
    Homepage: http://www.volker-wysk.de/hsshellscript/
    License:  LGPL

The thing wich looks like a problem is, that the new version isn't made the
"Default available version". It is 3.3.3, but "Default available version" is
still 3.3.2.

Is this a problem? How do I register a new default version?

Bye
Volker

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Package version question with Cabal

Volker Wysk-5
Am Dienstag, 20. Januar 2015, 05:14:15 schrieb Volker Wysk:
> ~/src/hsshellscript $ cabal install

Oops, this should be "cabal install hsshellscript-3.3.3", not just "cabal
install":

~/src/hsshellscript $ cabal install hsshellscript-3.3.3
Resolving dependencies...
All the requested packages are already installed:
hsshellscript-3.3.3
Use --reinstall if you want to reinstall anyway.

But when I try "--reinstall", I get this error:

~/src/hsshellscript $ cabal --reinstall install hsshellscript-3.3.3
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: hsshellscript (user goal)
rejecting: hsshellscript-3.3.2, 3.3.1, 3.3.0, 3.2.0, 3.1.0 (global constraint
requires ==3.3.3)
Dependency tree exhaustively searched.

What does this mean...?

I've also in vain searched for a way to remove a cabal installed package.

Thanks,
Volker

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Package version question with Cabal

Brandon Allbery
In reply to this post by Volker Wysk-5
On Mon, Jan 19, 2015 at 11:14 PM, Volker Wysk <[hidden email]> wrote:
I've uploaded my library to Hackage, and now I'm trying to install it via
cabal:

At a guess, the index has not yet been updated --- you may need to wait some time (might be as short as an hour) before trying to install it from Hackage.

You also need to run "cabal update" to download the updated package index so your local cabal-install knows about the new package.

--
brandon s allbery kf8nh                               sine nomine associates
[hidden email]                                  [hidden email]
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Package version question with Cabal

Volker Wysk-5
Am Montag, 19. Januar 2015, 23:32:09 schrieben Sie:

> On Mon, Jan 19, 2015 at 11:14 PM, Volker Wysk <[hidden email]>
>
> wrote:
> > I've uploaded my library to Hackage, and now I'm trying to install it via
> > cabal:
> At a guess, the index has not yet been updated --- you may need to wait
> some time (might be as short as an hour) before trying to install it from
> Hackage.
>
> You also need to run "cabal update" to download the updated package index
> so your local cabal-install knows about the new package.

I'm not completely sure what happened, but now it seems to work. The "Default
available version" is the latest one. Looks like you have been right. Thanx.

Volker
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users