cdepillabout / password

datatypes and functions for easily working with passwords in Haskell
http://hackage.haskell.org/package/password
55 stars 16 forks source link

Extra tweaks to CLI #72

Closed Vlix closed 10 months ago

Vlix commented 1 year ago

Added a bunch of documentation, help strings and restructured the internals a bit.

@cdepillabout Take your time reviewing this. There's no rush.

Also, I'm wondering if it's even necessary to publish password-cli to hackage.com :thinking: It's only an executable, and hackage is for libraries. It being in the repo is good enough for anyone who'd like to build it, right?

Should we maybe add the fact that there IS a CLI to the password/README and link to the repo in there? (When we're happy with the state of the CLI, of course)

cdepillabout commented 1 year ago

Thanks, I'll try to take a look at this in the next couple of days.

Maybe @blackheaven would want to review this as well?

blackheaven commented 1 year ago

Also, I'm wondering if it's even necessary to publish password-cli to hackage.com 🤔 It's only an executable, and hackage is for libraries. It being in the repo is good enough for anyone who'd like to build it, right?

IIUC, it's the easiest way to make it available to everyone (cabal install and nixpkgs).

Vlix commented 1 year ago

@blackheaven Do you know of other executables on hackage that only have an executable stanza in their cabal file?

blackheaven commented 1 year ago

After a quick search on hackage:

More generally:

cdepillabout commented 1 year ago

It's only an executable, and hackage is for libraries. It being in the repo is good enough for anyone who'd like to build it, right?

I think this is generally a (widely-held) misconception. Hackage is for distributing both libraries and standalone executables.

Like @blackheaven said, there are a few Linux distros that have automation around packaging/distributing Haskell packages from Hackage. But Haskell packages that aren't on Hackage don't benefit from this automation. As far as I know, Nixpkgs and OpenSUSE both fall into this category.

Vlix commented 1 year ago

I was wondering what the highlight code for console was. bash didn't quite do the same :sweat_smile: so I kept it plain text.