From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: Re: propagating inputs in ghc-* packages Date: Sun, 2 Oct 2016 17:42:54 +0200 Message-ID: References: <871t00v7fy.fsf@elephly.net> <87twcv8jou.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqium-0000Jf-9a for guix-devel@gnu.org; Sun, 02 Oct 2016 11:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqiul-0004Or-93 for guix-devel@gnu.org; Sun, 02 Oct 2016 11:42:56 -0400 Received: from mail-ua0-x236.google.com ([2607:f8b0:400c:c08::236]:35032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqiul-0004OY-4k for guix-devel@gnu.org; Sun, 02 Oct 2016 11:42:55 -0400 Received: by mail-ua0-x236.google.com with SMTP id q42so131887029uaq.2 for ; Sun, 02 Oct 2016 08:42:54 -0700 (PDT) In-Reply-To: <87twcv8jou.fsf@elephly.net> 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: Ricardo Wurmus Cc: Guix-devel On Sun, Oct 2, 2016 at 6:21 AM, Ricardo Wurmus wrote: >> That sounds great! Just to be sure: you are saying that if you install >> any library (call it A) and the GHC compiler into your profile then you >> are able to compile your program (making use of library A) without >> also having to manually install any input of library A? > > This seems to be the case. Here is an example ghci session in which I=E2= =80=99m > using =E2=80=9Cghc-pandoc=E2=80=9D as a library without having to install= any of the > numerous inputs to =E2=80=9Cghc-pandoc=E2=80=9D (and their inputs): > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ./pre-inst-env guix environment --ad-hoc ghc ghc-pandoc > [=E2=80=A6] > rekado in guix-wip [env]: ghci > GHCi, version 7.10.2: http://www.haskell.org/ghc/ :? for help > Prelude> import Text.Pandoc > Prelude Text.Pandoc> readMarkdown def "Hello" > Right (Pandoc (Meta {unMeta =3D fromList []}) [Para [Str "Hello"]]) > Prelude Text.Pandoc> :q > Leaving GHCi. > rekado in guix-wip [env]: > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nice. Thanks for checking.