From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: distinguishing between applications and libraries Date: Mon, 01 Jul 2019 23:46:18 +0200 Message-ID: <87muhxv36d.fsf@elephly.net> References: <0E655A03-834C-4219-8956-D69CF4C6A444@vllmrt.net> <874l47hs00.fsf@ambrevar.xyz> <19D3778D-BA32-41C9-81C9-60ECB4F3BF7E@vllmrt.net> <87tvc6hisk.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51218) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hi488-0004M0-H0 for guix-devel@gnu.org; Mon, 01 Jul 2019 17:46:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hi486-0006sa-S0 for guix-devel@gnu.org; Mon, 01 Jul 2019 17:46:32 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hi486-0006mM-HA for guix-devel@gnu.org; Mon, 01 Jul 2019 17:46:30 -0400 In-reply-to: <87tvc6hisk.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: guix-devel@gnu.org, Robert Vollmert Pierre Neidhardt writes: > Robert Vollmert writes: > >> Good point, but that breaks down once a library is used by a package >> outside that module. E.g. consider the various ghc-* packages. Running >> =E2=80=9Cguix search clock=E2=80=9D returns `ghc-clock` and `ocaml-mtime= `. The first >> needs to be public since it=E2=80=99s used elsewhere, the second is defi= ned >> as public anyway. Should that change? > > If you need to depend on a non-exported package, you can still > access it with > > (@@ (gnu packages my-module) my-package) Nah, it=E2=80=99s not good to do this. The use of @@ is an anti-pattern. To completely hide a package from the UI use =E2=80=9Chidden-package=E2=80= =9D or =E2=80=9C(properties ((hidden . #t)))=E2=80=9D. --=20 Ricardo