From: Timothy Sample <samplet@ngyro.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: guix-devel@gnu.org
Subject: Re: 05/05: gnu: Add ghc-hspec-discover.
Date: Sun, 09 Feb 2020 11:25:57 -0500 [thread overview]
Message-ID: <87sgjjpw16.fsf@ngyro.com> (raw)
In-Reply-To: <87y2tcxh3y.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 09 Feb 2020 10:08:49 +0100")
Hi,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
>
> Timothy Sample <samplet@ngyro.com> writes:
>
>> We already have “hspec-discover” without the “ghc” prefix. The two
>> packages look identical to me – is this an unintentional copy?
>
> Oh! I hadn't noticed!
>
> Well, is there any strong reason to use "hspec-discover" over
> "ghc-hspec-discover", besides that it already exists?
The loose convention is that libraries have the prefix, and programs
don’t. The “hspec-discover” package was added before my time, but I
guess whoever added it was following that convention.
> For the arguments in favor of using ghc-hspec-discover:
> - every other "hspec" package uses the "ghc-" prefix,
> - the hackage importer names it,
> - the hackage importer will add "ghc-hspec-discover" as an input anyway.
That is definitely a problem. From my experience, “hspec-discover” is
often missed by the importer because it is put in “build-tool-depends”
instead of “build-depends” in the Cabal file. Ideally, the importer
would know to add it from “build-tools-discover” and it would know what
it should be named.
> So what about deprecating "hspec-discover" in favor of
> "ghc-hspec-discover"?
I did a quick scan of the “text-conversions” source code, and it doesn’t
seem to use “hspec-discover” as a library. It looks like it’s just a
mistake in the Cabal file.
Between the convention and the fact that “hspec-discover” is almost
always used as a program instead of a library, I would say that it’s
okay the way it is. Beyond that, it would be quite a bit of churn to
change it with very little benefit.
> Thanks for the heads up!
No problem. Thanks for committing packages!
-- Tim
next prev parent reply other threads:[~2020-02-09 16:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200208144029.3072.2814@vcs0.savannah.gnu.org>
[not found] ` <20200208144032.CCDFC21049@vcs0.savannah.gnu.org>
2020-02-09 5:38 ` 05/05: gnu: Add ghc-hspec-discover Timothy Sample
2020-02-09 9:08 ` Nicolas Goaziou
2020-02-09 16:25 ` Timothy Sample [this message]
2020-02-09 16:36 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgjjpw16.fsf@ngyro.com \
--to=samplet@ngyro.com \
--cc=guix-devel@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.