[Haskell-cafe] Compiling non-registered packages into a sandbox?

7 views
Skip to first unread message

David Banas

unread,
Aug 31, 2015, 11:20:39 AM8/31/15
to Haskell Cafe
Hi all,

How do I compile a non-Hackage registered package into a local sandbox?

Let’s say I have:

/proj_dir/
  - .cabal-sandbox/
  - cabal.sandbox.config
  - dep_pkg/
     - dep_pkg.cabal
     - Setup.lhs
     - …

I’d like to compile the dep_pkg package into my proj_dir sandbox; can I do this, if dep_pkg is NOT registered with Hackage?
If so, how?

Thanks,
-db

Erik Hesselink

unread,
Aug 31, 2015, 2:08:55 PM8/31/15
to David Banas, Haskell Cafe
Doesn't a simple 'cabal install dep_pkg/' when in 'proj_dir' work?

Additionally, you can do 'cabal sandbox add-source dep_pkg/', which
will make it available to be installed as a dependency automatically
(and reinstall when it's changed).

Erik

> _______________________________________________
> Haskell-Cafe mailing list
> Haskel...@haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
_______________________________________________
Haskell-Cafe mailing list
Haskel...@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Reply all
Reply to author
Forward
0 new messages