all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Fwd: Haskell and guix
       [not found] <CAL1_im=LS5=yzRRG7aR3sOdROTZOpHXBsLdC7ffNz2K1m9Ggow@mail.gmail.com>
@ 2016-12-12 23:26 ` David Craven
  2016-12-13 17:23   ` David Craven
  0 siblings, 1 reply; 3+ messages in thread
From: David Craven @ 2016-12-12 23:26 UTC (permalink / raw)
  To: help-guix

Hi!

Can someone explain to me how to build a Haskell package? Or put
differently, why am I getting this error message?

Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).

Steps to reproduce are:
guix environment idris --ad-hoc cabal-install
cabal build

Also if we have a Haskell expert here,

what is the difference between runhaskell Setup.hs test and cabal test?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Haskell and guix
  2016-12-12 23:26 ` Fwd: Haskell and guix David Craven
@ 2016-12-13 17:23   ` David Craven
  2016-12-13 23:30     ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: David Craven @ 2016-12-13 17:23 UTC (permalink / raw)
  To: help-guix

So for future reference, to hack on a haskell package these are the steps:

guix environment haskell-package --ad-hoc cabal-install
unset GHC_PACKAGE_PATH
export GUIX_LD_WRAPPER_ALLOW_IMPURITIES=y
cabal update
cabal sandbox init
cabal install --only-dependencies --enable-tests
cabal build

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Haskell and guix
  2016-12-13 17:23   ` David Craven
@ 2016-12-13 23:30     ` Ludovic Courtès
  0 siblings, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2016-12-13 23:30 UTC (permalink / raw)
  To: David Craven; +Cc: help-guix

David Craven <david@craven.ch> skribis:

> So for future reference, to hack on a haskell package these are the steps:
>
> guix environment haskell-package --ad-hoc cabal-install
> unset GHC_PACKAGE_PATH
> export GUIX_LD_WRAPPER_ALLOW_IMPURITIES=y
> cabal update
> cabal sandbox init
> cabal install --only-dependencies --enable-tests
> cabal build

Thanks for sharing!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-13 23:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAL1_im=LS5=yzRRG7aR3sOdROTZOpHXBsLdC7ffNz2K1m9Ggow@mail.gmail.com>
2016-12-12 23:26 ` Fwd: Haskell and guix David Craven
2016-12-13 17:23   ` David Craven
2016-12-13 23:30     ` Ludovic Courtès

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.