Sunday, July 25, 2010

cabal unpack

If you want to browse the source code of a package on Hackage, "cabal unpack" is a useful command.

packages % ls
packages % cabal unpack web-routes-quasi
Unpacking to web-routes-quasi-0.5.0/
packages % ls
packages % 

Just pass it the name of a package and you'll get an unzipped tarball in your current directory. Very useful.

1 comment:

  1. That is a damn sight more elegant than my current practice of going into .cabal/packages and untarring there ;)