Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. cabal sandbox add-source installs but disappears
(Dimitri DeFigueiredo)
2. Re: cabal sandbox add-source installs but disappears
(Brandon Allbery)
3. Re: cabal sandbox add-source installs but disappears
(Dimitri DeFigueiredo)
----------------------------------------------------------------------
Message: 1
Date: Fri, 14 Aug 2015 12:53:48 -0600
From: Dimitri DeFigueiredo <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] cabal sandbox add-source installs but
disappears
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed
Hello all,
I am having "a bit" of an issue trying to use a source dependency with
cabal. I have a very simple setup with only 2 packages:
~/code/haskell/package-tests/a-package
a.cabal
src/MainA.hs
and
~/code/haskell/package-tests/MinhaCommon
MinhaCommon.cabal
setup.hs
src/MainCommon.hs
I have setup a sandbox for the MinhaCommon package and can build it.
However, the first one (a-package) depends on the second (MinhaCommon).
So, I also created a sandbox for it as such:
a-package>cabal sandbox init
and that seems to work fine...
Writing a default package environment file to
/Users/dimitri/code/haskell/package-tests/a-package/cabal.sandbox.config
Creating a new sandbox at
/Users/dimitri/code/haskell/package-tests/a-package/.cabal-sandbox
I then add the source package and install...
a-package>cabal sandbox add-source '../MinhaCommon/'
a-package>cabal install --only-dep
Resolving dependencies...
Notice: installing into a sandbox located at
/Users/dimitri/code/haskell/package-tests/a-package/.cabal-sandbox
Configuring MinhaCommon-0.7.0...
Building MinhaCommon-0.7.0...
Installed MinhaCommon-0.7.0
Updating documentation index
/Users/dimitri/code/haskell/package-tests/a-package/.cabal-sandbox/share/doc/x86_64-osx-ghc-7.10.2/index.html
Here's the snag!
a-package>cabal configure
Resolving dependencies...
Configuring a-0.1.0...
cabal: At least the following dependencies are missing:
MinhaCommon ==0.7.0
WTF!? I just installed that!
The cabal file for package 'a' just includes the MinhaCommon package
thru the build-depends section
(http://pastebin.com/Wpz5845k)
------------------------------------------------
name: a
version: 0.1.0
build-type: Simple
cabal-version: >=1.20
----------------------------------------------
executable a
main-is: MainA.hs
hs-source-dirs: ./src
build-depends: base >= 4.4
, unordered-containers
, unix
, process
, stm
, MinhaCommon == 0.7.0
default-language: Haskell2010
------------------------------------------------
Any pointers on how to get this to build are much appreciated.
Thanks,
Dimitri
------------------------------
Message: 2
Date: Fri, 14 Aug 2015 15:00:30 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] cabal sandbox add-source installs but
disappears
Message-ID:
<CAKFCL4Vr=vErkD9_TV-_s9nwP3Y9e6K7k2L=atyhyskp6m7...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Aug 14, 2015 at 2:53 PM, Dimitri DeFigueiredo <
[email protected]> wrote:
> executable a
> main-is: MainA.hs
> hs-source-dirs: ./src
>
Looks to me like you have told it that MinhaCommon is an executable with no
library component. Installing it therefore created and installed a program
named "a", without registering a library.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150814/5aaf4f0e/attachment-0001.html>
------------------------------
Message: 3
Date: Fri, 14 Aug 2015 13:25:50 -0600
From: Dimitri DeFigueiredo <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] cabal sandbox add-source installs but
disappears
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"; Format="flowed"
Yes!! Thank you!!!
You nailed it :-D
Dimitri
Em 14/08/15 13:00, Brandon Allbery escreveu:
> On Fri, Aug 14, 2015 at 2:53 PM, Dimitri DeFigueiredo
> <[email protected] <mailto:[email protected]>> wrote:
>
> executable a
> main-is: MainA.hs
> hs-source-dirs: ./src
>
>
> Looks to me like you have told it that MinhaCommon is an executable
> with no library component. Installing it therefore created and
> installed a program named "a", without registering a library.
>
> --
> brandon s allbery kf8nh sine nomine associates
> [email protected] <mailto:[email protected]>
> [email protected] <mailto:[email protected]>
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150814/47c1c5fa/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 86, Issue 10
*****************************************