tar-package was: Re: modules of cabal-install
duncan.coutts at worc.ox.ac.uk
Tue Feb 24 09:31:56 EST 2009
On Tue, 2009-02-24 at 13:42 +0100, Christian Maeder wrote:
> > Ok, so perhaps we should split the API into two, in the way you suggest
> > above. I'll try that and see how it looks.
Ok, I've applied your patch with a slight variation. See the haddocks:
Basically it's split into Codec.Archive.Tar for the high level bits of
the api you suggested and Codec.Archive.Tar.Entry for the details of
what an Entry is, how to construct one etc. Hopefully the documentation
makes that split clear.
fileType :: Entry -> FileType
data FileType = ...
from the high level api, rather than adding
isNormalFile :: Entry -> Bool
Thanks again for the feedback.
More information about the Libraries