Internal.hs:183:44: No instance for (Data Object) #182

Closed
codygman opened this Issue Feb 5, 2014 · 4 comments

Comments

Projects
None yet
2 participants
Contributor

codygman commented Feb 5, 2014

EDIT: My first comments are very verbose, but serve as proof of the bug. ctrl+f summary for a tl;dr

When installing lens it fails on the aeson dependency:

cody@zentop:$ ls -a
.   a-little-lens-starter-tutorial.cabal  LICENSE
..  cabal.sandbox.config                  Setup.hs
cody@zentop:$ cabal sandbox init
Writing a default package environment file to
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/cabal.sandbox.config
Creating a new sandbox at
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox
cody@zentop:$ cabal install lens
Resolving dependencies...
Configuring exceptions-0.3.3...
Building exceptions-0.3.3...
Preprocessing library exceptions-0.3.3...
                                                                                                      [1 of 2] Compiling Control.Monad.Catch ( src/Control/Monad/Catch.hs, dist/dist-sandbox-5b46bc07/build/Control/Monad/Catch.o )
[2 of 2] Compiling Control.Monad.Catch.Pure ( src/Control/Monad/Catch/Pure.hs, dist/dist-sandbox-5b46bc07/build/Control/Monad/Catch/Pure.o )
In-place registering exceptions-0.3.3...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/exceptions-0.3.3
Registering exceptions-0.3.3...
Installed exceptions-0.3.3
Configuring nats-0.1.2...
Building nats-0.1.2...
Preprocessing library nats-0.1.2...
[1 of 2] Compiling Numeric.Natural.Internal ( src/Numeric/Natural/Internal.hs, dist/dist-sandbox-5b46bc07/build/Numeric/Natural/Internal.o )
[2 of 2] Compiling Numeric.Natural  ( src/Numeric/Natural.hs, dist/dist-sandbox-5b46bc07/build/Numeric/Natural.o )
In-place registering nats-0.1.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/nats-0.1.2
Registering nats-0.1.2...
Installed nats-0.1.2
Configuring newtype-0.2...
Building newtype-0.2...
Preprocessing library newtype-0.2...
[1 of 1] Compiling Control.Newtype  ( Control/Newtype.hs, dist/dist-sandbox-5b46bc07/build/Control/Newtype.o )
In-place registering newtype-0.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/newtype-0.2
Registering newtype-0.2...
Installed newtype-0.2
Configuring scientific-0.2.0.1...
Building scientific-0.2.0.1...
Preprocessing library scientific-0.2.0.1...
[1 of 1] Compiling Data.Scientific  ( src/Data/Scientific.hs, dist/dist-sandbox-5b46bc07/build/Data/Scientific.o )
In-place registering scientific-0.2.0.1...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/scientific-0.2.0.1
Registering scientific-0.2.0.1...
Installed scientific-0.2.0.1
Configuring split-0.2.2...
Building split-0.2.2...
Preprocessing library split-0.2.2...
[1 of 2] Compiling Data.List.Split.Internals ( src/Data/List/Split/Internals.hs, dist/dist-sandbox-5b46bc07/build/Data/List/Split/Internals.o )
[2 of 2] Compiling Data.List.Split  ( src/Data/List/Split.hs, dist/dist-sandbox-5b46bc07/build/Data/List/Split.o )
In-place registering split-0.2.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/split-0.2.2
Registering split-0.2.2...
Installed split-0.2.2
Configuring tagged-0.7...
Building tagged-0.7...
Preprocessing library tagged-0.7...
[1 of 2] Compiling Data.Proxy       ( old/Data/Proxy.hs, dist/dist-sandbox-5b46bc07/build/Data/Proxy.o )
[2 of 2] Compiling Data.Tagged      ( src/Data/Tagged.hs, dist/dist-sandbox-5b46bc07/build/Data/Tagged.o )
In-place registering tagged-0.7...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/tagged-0.7
Registering tagged-0.7...
Installed tagged-0.7
Configuring transformers-compat-0.1.1.1...
Building transformers-compat-0.1.1.1...
Preprocessing library transformers-compat-0.1.1.1...
[1 of 1] Compiling Paths_transformers_compat ( dist/dist-sandbox-5b46bc07/build/autogen/Paths_transformers_compat.hs, dist/dist-sandbox-5b46bc07/build/Paths_transformers_compat.o )
In-place registering transformers-compat-0.1.1.1...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/transformers-compat-0.1.1.1
Registering transformers-compat-0.1.1.1...
Installed transformers-compat-0.1.1.1
Configuring zlib-0.5.4.1...
Building zlib-0.5.4.1...
Preprocessing library zlib-0.5.4.1...
[1 of 5] Compiling Codec.Compression.Zlib.Stream ( dist/dist-sandbox-5b46bc07/build/Codec/Compression/Zlib/Stream.hs, dist/dist-sandbox-5b46bc07/build/Codec/Compression/Zlib/Stream.o )
[2 of 5] Compiling Codec.Compression.Zlib.Internal ( Codec/Compression/Zlib/Internal.hs, dist/dist-sandbox-5b46bc07/build/Codec/Compression/Zlib/Internal.o )
[3 of 5] Compiling Codec.Compression.Zlib.Raw ( Codec/Compression/Zlib/Raw.hs, dist/dist-sandbox-5b46bc07/build/Codec/Compression/Zlib/Raw.o )
[4 of 5] Compiling Codec.Compression.Zlib ( Codec/Compression/Zlib.hs, dist/dist-sandbox-5b46bc07/build/Codec/Compression/Zlib.o )
[5 of 5] Compiling Codec.Compression.GZip ( Codec/Compression/GZip.hs, dist/dist-sandbox-5b46bc07/build/Codec/Compression/GZip.o )
In-place registering zlib-0.5.4.1...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/zlib-0.5.4.1
Registering zlib-0.5.4.1...
Installed zlib-0.5.4.1
Configuring semigroups-0.12.2...
Building semigroups-0.12.2...
Preprocessing library semigroups-0.12.2...
[1 of 2] Compiling Data.List.NonEmpty ( src/Data/List/NonEmpty.hs, dist/dist-sandbox-5b46bc07/build/Data/List/NonEmpty.o )
[2 of 2] Compiling Data.Semigroup   ( src/Data/Semigroup.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroup.o )
In-place registering semigroups-0.12.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/semigroups-0.12.2
Registering semigroups-0.12.2...
Installed semigroups-0.12.2
Configuring constraints-0.3.4.2...
Building constraints-0.3.4.2...
Preprocessing library constraints-0.3.4.2...
[1 of 3] Compiling Data.Constraint  ( Data/Constraint.hs, dist/dist-sandbox-5b46bc07/build/Data/Constraint.o )
[2 of 3] Compiling Data.Constraint.Unsafe ( Data/Constraint/Unsafe.hs, dist/dist-sandbox-5b46bc07/build/Data/Constraint/Unsafe.o )
[3 of 3] Compiling Data.Constraint.Forall ( Data/Constraint/Forall.hs, dist/dist-sandbox-5b46bc07/build/Data/Constraint/Forall.o )
In-place registering constraints-0.3.4.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/constraints-0.3.4.2
Registering constraints-0.3.4.2...
Installed constraints-0.3.4.2
Configuring attoparsec-0.11.1.0...
Building attoparsec-0.11.1.0...
Preprocessing library attoparsec-0.11.1.0...
[ 1 of 18] Compiling Data.Attoparsec.Text.FastSet ( Data/Attoparsec/Text/FastSet.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Text/FastSet.o )
[ 2 of 18] Compiling Data.Attoparsec.Zepto ( Data/Attoparsec/Zepto.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Zepto.o )
[ 3 of 18] Compiling Data.Attoparsec.Number ( Data/Attoparsec/Number.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Number.o )
[ 4 of 18] Compiling Data.Attoparsec.ByteString.FastSet ( Data/Attoparsec/ByteString/FastSet.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/ByteString/FastSet.o )
[ 5 of 18] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Internal/Types.o )
[ 6 of 18] Compiling Data.Attoparsec.Types ( Data/Attoparsec/Types.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Types.o )
[ 7 of 18] Compiling Data.Attoparsec.Internal ( Data/Attoparsec/Internal.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Internal.o )
[ 8 of 18] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Combinator.o )
[ 9 of 18] Compiling Data.Attoparsec.ByteString.Internal ( Data/Attoparsec/ByteString/Internal.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/ByteString/Internal.o )
[10 of 18] Compiling Data.Attoparsec.Text.Internal ( Data/Attoparsec/Text/Internal.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Text/Internal.o )
[11 of 18] Compiling Data.Attoparsec.Text ( Data/Attoparsec/Text.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Text.o )
[12 of 18] Compiling Data.Attoparsec.Text.Lazy ( Data/Attoparsec/Text/Lazy.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Text/Lazy.o )
[13 of 18] Compiling Data.Attoparsec.ByteString ( Data/Attoparsec/ByteString.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/ByteString.o )
[14 of 18] Compiling Data.Attoparsec.ByteString.Char8 ( Data/Attoparsec/ByteString/Char8.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/ByteString/Char8.o )
[15 of 18] Compiling Data.Attoparsec.Char8 ( Data/Attoparsec/Char8.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Char8.o )
[16 of 18] Compiling Data.Attoparsec.ByteString.Lazy ( Data/Attoparsec/ByteString/Lazy.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/ByteString/Lazy.o )
[17 of 18] Compiling Data.Attoparsec.Lazy ( Data/Attoparsec/Lazy.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec/Lazy.o )
[18 of 18] Compiling Data.Attoparsec  ( Data/Attoparsec.hs, dist/dist-sandbox-5b46bc07/build/Data/Attoparsec.o )
In-place registering attoparsec-0.11.1.0...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/attoparsec-0.11.1.0
Registering attoparsec-0.11.1.0...
Installed attoparsec-0.11.1.0
Configuring reflection-1.4...
Building reflection-1.4...
Preprocessing library reflection-1.4...
[1 of 1] Compiling Data.Reflection  ( fast/Data/Reflection.hs, dist/dist-sandbox-5b46bc07/build/Data/Reflection.o )
In-place registering reflection-1.4...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/reflection-1.4
Registering reflection-1.4...
Installed reflection-1.4
Configuring contravariant-0.4.4...
Building contravariant-0.4.4...
Preprocessing library contravariant-0.4.4...
[1 of 3] Compiling Data.Functor.Contravariant ( Data/Functor/Contravariant.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Contravariant.o )
[2 of 3] Compiling Data.Functor.Contravariant.Compose ( Data/Functor/Contravariant/Compose.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Contravariant/Compose.o )
[3 of 3] Compiling Data.Functor.Contravariant.Day ( Data/Functor/Contravariant/Day.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Contravariant/Day.o )
In-place registering contravariant-0.4.4...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/contravariant-0.4.4
Registering contravariant-0.4.4...
Installed contravariant-0.4.4
[1 of 1] Compiling Main             ( /tmp/distributive-0.4-12368/distributive-0.4/Setup.lhs, /tmp/distributive-0.4-12368/distributive-0.4/dist/dist-sandbox-5b46bc07/setup/Main.o )
Linking /tmp/distributive-0.4-12368/distributive-0.4/dist/dist-sandbox-5b46bc07/setup/setup ...
Configuring distributive-0.4...
Building distributive-0.4...
Preprocessing library distributive-0.4...
[1 of 1] Compiling Data.Distributive ( src/Data/Distributive.hs, dist/dist-sandbox-5b46bc07/build/Data/Distributive.o )
In-place registering distributive-0.4...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/distributive-0.4
Registering distributive-0.4...
Installed distributive-0.4
Configuring void-0.6.1...
Building void-0.6.1...
Preprocessing library void-0.6.1...
[1 of 2] Compiling Data.Void        ( src/Data/Void.hs, dist/dist-sandbox-5b46bc07/build/Data/Void.o )
[2 of 2] Compiling Data.Void.Unsafe ( src/Data/Void/Unsafe.hs, dist/dist-sandbox-5b46bc07/build/Data/Void/Unsafe.o )
In-place registering void-0.6.1...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/void-0.6.1
Registering void-0.6.1...
Installed void-0.6.1
Configuring aeson-0.7.0.1...
Building aeson-0.7.0.1...
Preprocessing library aeson-0.7.0.1...
[ 1 of 12] Compiling Data.Aeson.Types.Internal ( Data/Aeson/Types/Internal.hs, dist/dist-sandbox-5b46bc07/build/Data/Aeson/Types/Internal.o )

Data/Aeson/Types/Internal.hs:183:44:
    No instance for (Data Object)
      arising from the 'deriving' clause of a data type declaration
    Possible fix:
      add an instance declaration for (Data Object)
      or use a standalone 'deriving instance' declaration,
           so you can specify the instance context yourself
    When deriving the instance for (Data Value)
Failed to install aeson-0.7.0.1
[1 of 1] Compiling Main             ( /tmp/comonad-4.0-12368/comonad-4.0/Setup.lhs, /tmp/comonad-4.0-12368/comonad-4.0/dist/dist-sandbox-5b46bc07/setup/Main.o )
Linking /tmp/comonad-4.0-12368/comonad-4.0/dist/dist-sandbox-5b46bc07/setup/setup ...
Configuring comonad-4.0...
Building comonad-4.0...
Preprocessing library comonad-4.0...
[ 1 of 16] Compiling Data.Functor.Composition ( src/Data/Functor/Composition.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Composition.o )
[ 2 of 16] Compiling Control.Comonad.Trans.Identity ( src/Control/Comonad/Trans/Identity.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Trans/Identity.o )
[ 3 of 16] Compiling Control.Comonad  ( src/Control/Comonad.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad.o )
[ 4 of 16] Compiling Control.Comonad.Trans.Class ( src/Control/Comonad/Trans/Class.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Trans/Class.o )
[ 5 of 16] Compiling Control.Comonad.Hoist.Class ( src/Control/Comonad/Hoist/Class.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Hoist/Class.o )
[ 6 of 16] Compiling Control.Comonad.Trans.Env ( src/Control/Comonad/Trans/Env.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Trans/Env.o )
[ 7 of 16] Compiling Control.Comonad.Trans.Store ( src/Control/Comonad/Trans/Store.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Trans/Store.o )
[ 8 of 16] Compiling Control.Comonad.Trans.Traced ( src/Control/Comonad/Trans/Traced.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Trans/Traced.o )
[ 9 of 16] Compiling Control.Comonad.Env.Class ( src/Control/Comonad/Env/Class.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Env/Class.o )
[10 of 16] Compiling Control.Comonad.Env ( src/Control/Comonad/Env.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Env.o )
[11 of 16] Compiling Control.Comonad.Identity ( src/Control/Comonad/Identity.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Identity.o )
[12 of 16] Compiling Control.Comonad.Store.Class ( src/Control/Comonad/Store/Class.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Store/Class.o )
[13 of 16] Compiling Control.Comonad.Store ( src/Control/Comonad/Store.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Store.o )
[14 of 16] Compiling Control.Comonad.Traced.Class ( src/Control/Comonad/Traced/Class.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Traced/Class.o )
[15 of 16] Compiling Control.Comonad.Traced ( src/Control/Comonad/Traced.hs, dist/dist-sandbox-5b46bc07/build/Control/Comonad/Traced.o )
[16 of 16] Compiling Data.Functor.Coproduct ( src/Data/Functor/Coproduct.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Coproduct.o )
In-place registering comonad-4.0...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/comonad-4.0
Registering comonad-4.0...
Installed comonad-4.0
Configuring semigroupoids-4.0...
Building semigroupoids-4.0...
Preprocessing library semigroupoids-4.0...
[ 1 of 20] Compiling Data.Traversable.Instances ( src/Data/Traversable/Instances.hs, dist/dist-sandbox-5b46bc07/build/Data/Traversable/Instances.o )
[ 2 of 20] Compiling Data.Functor.Extend ( src/Data/Functor/Extend.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Extend.o )
[ 3 of 20] Compiling Data.Functor.Bind ( src/Data/Functor/Bind.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Bind.o )
[ 4 of 20] Compiling Data.Functor.Bind.Trans ( src/Data/Functor/Bind/Trans.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Bind/Trans.o )
[ 5 of 20] Compiling Data.Semigroupoid ( src/Data/Semigroupoid.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid.o )
[ 6 of 20] Compiling Data.Semigroupoid.Dual ( src/Data/Semigroupoid/Dual.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid/Dual.o )
[ 7 of 20] Compiling Data.Groupoid    ( src/Data/Groupoid.hs, dist/dist-sandbox-5b46bc07/build/Data/Groupoid.o )
[ 8 of 20] Compiling Data.Isomorphism ( src/Data/Isomorphism.hs, dist/dist-sandbox-5b46bc07/build/Data/Isomorphism.o )
[ 9 of 20] Compiling Data.Semigroupoid.Product ( src/Data/Semigroupoid/Product.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid/Product.o )
[10 of 20] Compiling Data.Semigroupoid.Coproduct ( src/Data/Semigroupoid/Coproduct.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid/Coproduct.o )
[11 of 20] Compiling Data.Semigroupoid.Ob ( src/Data/Semigroupoid/Ob.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid/Ob.o )
[12 of 20] Compiling Data.Functor.Apply ( src/Data/Functor/Apply.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Apply.o )
[13 of 20] Compiling Data.Semigroup.Foldable ( src/Data/Semigroup/Foldable.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroup/Foldable.o )
[14 of 20] Compiling Data.Semigroup.Traversable ( src/Data/Semigroup/Traversable.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroup/Traversable.o )
[15 of 20] Compiling Data.Semifunctor ( src/Data/Semifunctor.hs, dist/dist-sandbox-5b46bc07/build/Data/Semifunctor.o )
[16 of 20] Compiling Data.Semifunctor.Associative ( src/Data/Semifunctor/Associative.hs, dist/dist-sandbox-5b46bc07/build/Data/Semifunctor/Associative.o )
[17 of 20] Compiling Data.Semifunctor.Braided ( src/Data/Semifunctor/Braided.hs, dist/dist-sandbox-5b46bc07/build/Data/Semifunctor/Braided.o )
[18 of 20] Compiling Data.Functor.Alt ( src/Data/Functor/Alt.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Alt.o )
[19 of 20] Compiling Data.Functor.Plus ( src/Data/Functor/Plus.hs, dist/dist-sandbox-5b46bc07/build/Data/Functor/Plus.o )
[20 of 20] Compiling Data.Semigroupoid.Static ( src/Data/Semigroupoid/Static.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroupoid/Static.o )
In-place registering semigroupoids-4.0...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/semigroupoids-4.0
Registering semigroupoids-4.0...
Installed semigroupoids-4.0
Configuring bifunctors-4.1.1...
Building bifunctors-4.1.1...
Preprocessing library bifunctors-4.1.1...
[ 1 of 13] Compiling Data.Bifoldable  ( src/Data/Bifoldable.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifoldable.o )
[ 2 of 13] Compiling Data.Semigroup.Bifoldable ( src/Data/Semigroup/Bifoldable.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroup/Bifoldable.o )
[ 3 of 13] Compiling Data.Bifunctor   ( src/Data/Bifunctor.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor.o )
[ 4 of 13] Compiling Data.Bifunctor.Apply ( src/Data/Bifunctor/Apply.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Apply.o )
[ 5 of 13] Compiling Data.Bitraversable ( src/Data/Bitraversable.hs, dist/dist-sandbox-5b46bc07/build/Data/Bitraversable.o )
[ 6 of 13] Compiling Data.Semigroup.Bitraversable ( src/Data/Semigroup/Bitraversable.hs, dist/dist-sandbox-5b46bc07/build/Data/Semigroup/Bitraversable.o )
[ 7 of 13] Compiling Data.Biapplicative ( src/Data/Biapplicative.hs, dist/dist-sandbox-5b46bc07/build/Data/Biapplicative.o )
[ 8 of 13] Compiling Data.Bifunctor.Clown ( src/Data/Bifunctor/Clown.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Clown.o )
[ 9 of 13] Compiling Data.Bifunctor.Flip ( src/Data/Bifunctor/Flip.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Flip.o )
[10 of 13] Compiling Data.Bifunctor.Join ( src/Data/Bifunctor/Join.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Join.o )
[11 of 13] Compiling Data.Bifunctor.Joker ( src/Data/Bifunctor/Joker.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Joker.o )
[12 of 13] Compiling Data.Bifunctor.Product ( src/Data/Bifunctor/Product.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Product.o )
[13 of 13] Compiling Data.Bifunctor.Wrapped ( src/Data/Bifunctor/Wrapped.hs, dist/dist-sandbox-5b46bc07/build/Data/Bifunctor/Wrapped.o )
In-place registering bifunctors-4.1.1...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/bifunctors-4.1.1
Registering bifunctors-4.1.1...
Installed bifunctors-4.1.1
Configuring profunctors-4.0.2...
Building profunctors-4.0.2...
Preprocessing library profunctors-4.0.2...
[1 of 7] Compiling Data.Profunctor.Trace ( src/Data/Profunctor/Trace.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Trace.o )
[2 of 7] Compiling Data.Profunctor.Unsafe ( src/Data/Profunctor/Unsafe.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Unsafe.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.0 ... linking ... done.
Loading package deepseq-1.3.0.0 ... linking ... done.
Loading package containers-0.4.2.1 ... linking ... done.
Loading package tagged-0.7 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package transformers-compat-0.1.1.1 ... linking ... done.
Loading package contravariant-0.4.4 ... linking ... done.
Loading package distributive-0.4 ... linking ... done.
Loading package mtl-2.1.1 ... linking ... done.
Loading package bytestring-0.9.2.1 ... linking ... done.
Loading package text-0.11.2.0 ... linking ... done.
Loading package hashable-1.1.2.3 ... linking ... done.
Loading package nats-0.1.2 ... linking ... done.
Loading package unordered-containers-0.2.1.0 ... linking ... done.
Loading package semigroups-0.12.2 ... linking ... done.
Loading package comonad-4.0 ... linking ... done.
Loading package semigroupoids-4.0 ... linking ... done.
[3 of 7] Compiling Data.Profunctor  ( src/Data/Profunctor.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor.o )
[4 of 7] Compiling Data.Profunctor.Rep ( src/Data/Profunctor/Rep.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Rep.o )
[5 of 7] Compiling Data.Profunctor.Composition ( src/Data/Profunctor/Composition.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Composition.o )
[6 of 7] Compiling Data.Profunctor.Rift ( src/Data/Profunctor/Rift.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Rift.o )
[7 of 7] Compiling Data.Profunctor.Collage ( src/Data/Profunctor/Collage.hs, dist/dist-sandbox-5b46bc07/build/Data/Profunctor/Collage.o )
In-place registering profunctors-4.0.2...
Installing library in
/home/cody/programming/haskell/tutorials/a-little-lens-starter-tutorial/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/profunctors-4.0.2
Registering profunctors-4.0.2...
Installed profunctors-4.0.2
cabal: Error: some packages failed to install:
aeson-0.7.0.1 failed during the building phase. The exception was:
ExitFailure 1
lens-4.0 depends on aeson-0.7.0.1 which failed to install.
cody@zentop:$ cabal install aeson==0.7.0.1
Resolving dependencies...
Configuring aeson-0.7.0.1...
Building aeson-0.7.0.1...
Preprocessing library aeson-0.7.0.1...
[ 1 of 12] Compiling Data.Aeson.Types.Internal ( Data/Aeson/Types/Internal.hs, dist/dist-sandbox-5b46bc07/build/Data/Aeson/Types/Internal.o )

Data/Aeson/Types/Internal.hs:183:44:
    No instance for (Data Object)
      arising from the 'deriving' clause of a data type declaration
    Possible fix:
      add an instance declaration for (Data Object)
      or use a standalone 'deriving instance' declaration,
           so you can specify the instance context yourself
    When deriving the instance for (Data Value)
Failed to install aeson-0.7.0.1
cabal: Error: some packages failed to install:
aeson-0.7.0.1 failed during the building phase. The exception was:
ExitFailure 1
cody@zentop:$ 

If relevant, here are my OS/version details:

cody@zentop:$ cat /etc/issue
Debian GNU/Linux 7 \n \l

cody@zentop:$ uname -r
3.11-0.bpo.2-amd64
cody@zentop:$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1
cody@zentop:$ cabal --version
cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library 
cody@zentop:$ cabal list base | grep "Basic libraries" -B 1 -A4
* base
    Synopsis: Basic libraries
    Default available version: 4.6.0.1
    Installed versions: 4.5.0.0
    License:  BSD3

cody@zentop:$ 
Contributor

codygman commented Feb 5, 2014

In #haskell on irc.freenode.net I got the following advice:

<tomejaguar> codygman: It needs a Data instance for HashMap, which
only seems to appear in 0.2.3.0, but aeson's dependency is only on
0.1.3.0.
<tomejaguar> IIRC there's some flag to cabal where you can force it to
use a particular version of a package, but someone more
knowledgeable here will have to tell you what that is.
<dcoutts> tomejaguar: --constraint="foo == 1.0"   or
--constraint="foo < 2"   or whatever

This seemed to work:

cody@zentop:~/programming/haskell/tutorials/a-little-lens-starter-tutorial$ cabal install aeson==0.7.0.1 --constraint="unordered-containers >= 0.2.3.0"
Resolving dependencies...
In order, the following will be installed:
comonad-4.0 (reinstall) changes: semigroups-0.12.2 -> 0.8.3.2
semigroupoids-4.0 (reinstall) changes: semigroups-0.12.2 -> 0.8.3.2
bifunctors-4.1.1 (reinstall) changes: semigroups-0.12.2 -> 0.8.3.2
profunctors-4.0.2 (reinstall)
unordered-containers-0.2.3.3 (new version)
aeson-0.7.0.1 +blaze-builder (new version)
Warning: Note that reinstalls are always dangerous. Continuing anyway...

... installing dependencies ...

cody@zentop:~/programming/haskell/tutorials/a-little-lens-starter-tutorial$  

However, when I edited my cabal file to emulate this:

cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , lens
                       , unordered-containers==0.2.3.0
  -- hs-source-dirs:      
  default-language:    Haskell2010
cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

Installed profunctors-4.0.2
[1 of 1] Compiling Main             ( /tmp/lens-4.0-22505/lens-4.0/Setup.lhs, /tmp/lens-4.0-22505/lens-4.0/dist/dist-sandbox-87dd3428/setup/Main.o )
Linking /tmp/lens-4.0-22505/lens-4.0/dist/dist-sandbox-87dd3428/setup/setup ...
Configuring lens-4.0...
Building lens-4.0...
Preprocessing library lens-4.0...
ghc: could not execute: cpphs
Failed to install lens-4.0
cabal: Error: some packages failed to install:
bugtest-0.1.0.0 depends on lens-4.0 which failed to install.
lens-4.0 failed during the building phase. The exception was:
ExitFailure 1
cody@zentop:~/bugtest$ 

Tightening up dependencies didn't help out.

cody@zentop:~/bugtest$ 
cody@zentop:~/bugtest$ rm -r .cabal-sandbox/
cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1
                       , lens == 4.0
                       , unordered-containers==0.2.3.0
  -- hs-source-dirs:      
cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

Installed profunctors-4.0.2
[1 of 1] Compiling Main             ( /tmp/lens-4.0-24278/lens-4.0/Setup.lhs, /tmp/lens-4.0-24278/lens-4.0/dist/dist-sandbox-87dd3428/setup/Main.o )
Linking /tmp/lens-4.0-24278/lens-4.0/dist/dist-sandbox-87dd3428/setup/setup ...
Configuring lens-4.0...
Building lens-4.0...
Preprocessing library lens-4.0...
ghc: could not execute: cpphs
Failed to install lens-4.0
cabal: Error: some packages failed to install:
bugtest-0.1.0.0 depends on lens-4.0 which failed to install.
lens-4.0 failed during the building phase. The exception was:
ExitFailure 1

Finally success:

cody@zentop:~/bugtest$ rm -r .cabal-sandbox/
cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1
                       , lens == 4.0
                       , unordered-containers==0.2.3.0
  -- hs-source-dirs:      
cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

In-place registering lens-4.0...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/lens-4.0
Registering lens-4.0...
Installed lens-4.0
Configuring bugtest-0.1.0.0...
Building bugtest-0.1.0.0...
Preprocessing executable 'bugtest' for bugtest-0.1.0.0...
Linking dist/dist-sandbox-87dd3428/build/bugtest/bugtest ...
Installing executable(s) in /home/cody/bugtest/.cabal-sandbox/bin
Installed bugtest-0.1.0.0
cody@zentop:~/bugtest$ 
Contributor

codygman commented Feb 5, 2014

Going to see if I can isolate this to be aeson specific some more, or if it's just something that shows up in conjunction with lens.

Edit: Aeson installs fine on its own

cody@zentop:~/bugtest$ ls
bugtest.cabal   cabal.sandbox.config  LICENSE  Setup.hs
bugtest.cabal~  dist                  Main.hs
cody@zentop:~/bugtest$ rm -r .cabal-sandbox/
cody@zentop:~/bugtest$ ls
bugtest.cabal   cabal.sandbox.config  LICENSE  Setup.hs
bugtest.cabal~  dist                  Main.hs
cody@zentop:~/bugtest$ rm -r dist/
cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal sandbox init  C-c C-c
cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1

  -- hs-source-dirs:      
  default-language:    Haskell2010
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...
Configuring bytestring-0.10.2.0...
Building bytestring-0.10.2.0...
Preprocessing library bytestring-0.10.2.0...
[ 1 of 21] Compiling Data.ByteString.Builder.Prim.Internal.UncheckedShifts ( Data/ByteString/Builder/Prim/Internal/UncheckedShifts.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/Internal/UncheckedShifts.o )
[ 2 of 21] Compiling Data.ByteString.Builder.Prim.Internal ( Data/ByteString/Builder/Prim/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/Internal.o )
[ 3 of 21] Compiling Data.ByteString.Builder.Prim.Internal.Floating ( Data/ByteString/Builder/Prim/Internal/Floating.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/Internal/Floating.o )
[ 4 of 21] Compiling Data.ByteString.Builder.Prim.Binary ( Data/ByteString/Builder/Prim/Binary.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/Binary.o )
[ 5 of 21] Compiling Data.ByteString.Internal ( Data/ByteString/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Internal.o )
[ 6 of 21] Compiling Data.ByteString.Unsafe ( Data/ByteString/Unsafe.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Unsafe.o )
[ 7 of 21] Compiling Data.ByteString  ( Data/ByteString.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString.o )
[ 8 of 21] Compiling Data.ByteString.Char8 ( Data/ByteString/Char8.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Char8.o )
[ 9 of 21] Compiling Data.ByteString.Lazy.Internal ( Data/ByteString/Lazy/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy/Internal.o )
[10 of 21] Compiling Data.ByteString.Lazy ( Data/ByteString/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy.o )
[11 of 21] Compiling Data.ByteString.Lazy.Char8 ( Data/ByteString/Lazy/Char8.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy/Char8.o )
[12 of 21] Compiling Data.ByteString.Builder.Internal ( Data/ByteString/Builder/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Internal.o )
[13 of 21] Compiling Data.ByteString.Builder.Prim.Internal.Base16 ( Data/ByteString/Builder/Prim/Internal/Base16.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/Internal/Base16.o )
[14 of 21] Compiling Data.ByteString.Builder.Prim.ASCII ( Data/ByteString/Builder/Prim/ASCII.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim/ASCII.o )
[15 of 21] Compiling Data.ByteString.Builder.Prim ( Data/ByteString/Builder/Prim.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Prim.o )
[16 of 21] Compiling Data.ByteString.Builder.ASCII ( Data/ByteString/Builder/ASCII.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/ASCII.o )
[17 of 21] Compiling Data.ByteString.Builder ( Data/ByteString/Builder.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder.o )
[18 of 21] Compiling Data.ByteString.Lazy.Builder ( Data/ByteString/Lazy/Builder.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy/Builder.o )
[19 of 21] Compiling Data.ByteString.Lazy.Builder.ASCII ( Data/ByteString/Lazy/Builder/ASCII.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy/Builder/ASCII.o )
[20 of 21] Compiling Data.ByteString.Builder.Extra ( Data/ByteString/Builder/Extra.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Builder/Extra.o )
[21 of 21] Compiling Data.ByteString.Lazy.Builder.Extras ( Data/ByteString/Lazy/Builder/Extras.hs, dist/dist-sandbox-87dd3428/build/Data/ByteString/Lazy/Builder/Extras.o )
In-place registering bytestring-0.10.2.0...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/bytestring-0.10.2.0
Registering bytestring-0.10.2.0...
Installed bytestring-0.10.2.0
Configuring text-1.1.0.0...
Building text-1.1.0.0...
Preprocessing library text-1.1.0.0...
[ 1 of 42] Compiling Data.Text.Internal.Encoding.Utf32 ( Data/Text/Internal/Encoding/Utf32.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Encoding/Utf32.o )
[ 2 of 42] Compiling Data.Text.Internal.Fusion.Size ( Data/Text/Internal/Fusion/Size.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Fusion/Size.o )
[ 3 of 42] Compiling Data.Text.Internal.Builder.RealFloat.Functions ( Data/Text/Internal/Builder/RealFloat/Functions.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Builder/RealFloat/Functions.o )
[ 4 of 42] Compiling Data.Text.Internal.Builder.Int.Digits ( Data/Text/Internal/Builder/Int/Digits.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Builder/Int/Digits.o )
[ 5 of 42] Compiling Data.Text.Internal.Fusion.Types ( Data/Text/Internal/Fusion/Types.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Fusion/Types.o )
[ 6 of 42] Compiling Data.Text.Internal.Fusion.CaseMapping ( Data/Text/Internal/Fusion/CaseMapping.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Fusion/CaseMapping.o )
[ 7 of 42] Compiling Data.Text.Encoding.Error ( Data/Text/Encoding/Error.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Encoding/Error.o )
[ 8 of 42] Compiling Data.Text.Internal.Unsafe.Shift ( Data/Text/Internal/Unsafe/Shift.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Unsafe/Shift.o )
[ 9 of 42] Compiling Data.Text.Internal.Encoding.Utf16 ( Data/Text/Internal/Encoding/Utf16.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Encoding/Utf16.o )
[10 of 42] Compiling Data.Text.Internal.Functions ( Data/Text/Internal/Functions.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Functions.o )
[11 of 42] Compiling Data.Text.Internal.Unsafe ( Data/Text/Internal/Unsafe.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Unsafe.o )
[12 of 42] Compiling Data.Text.Internal.Fusion.Common ( Data/Text/Internal/Fusion/Common.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Fusion/Common.o )
[13 of 42] Compiling Data.Text.Array  ( Data/Text/Array.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Array.o )
[14 of 42] Compiling Data.Text.Internal.Unsafe.Char ( Data/Text/Internal/Unsafe/Char.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Unsafe/Char.o )
[15 of 42] Compiling Data.Text.Internal ( Data/Text/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal.o )
[16 of 42] Compiling Data.Text.Unsafe ( Data/Text/Unsafe.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Unsafe.o )
[17 of 42] Compiling Data.Text.Internal.Private ( Data/Text/Internal/Private.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Private.o )
[18 of 42] Compiling Data.Text.Internal.Fusion ( Data/Text/Internal/Fusion.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Fusion.o )
[19 of 42] Compiling Data.Text.Internal.Encoding.Fusion.Common ( Data/Text/Internal/Encoding/Fusion/Common.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Encoding/Fusion/Common.o )
[20 of 42] Compiling Data.Text.Internal.Encoding.Utf8 ( Data/Text/Internal/Encoding/Utf8.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Encoding/Utf8.o )
[21 of 42] Compiling Data.Text.Internal.Encoding.Fusion ( Data/Text/Internal/Encoding/Fusion.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Encoding/Fusion.o )
[22 of 42] Compiling Data.Text.Internal.Lazy.Encoding.Fusion ( Data/Text/Internal/Lazy/Encoding/Fusion.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Lazy/Encoding/Fusion.o )
[23 of 42] Compiling Data.Text.Internal.Search ( Data/Text/Internal/Search.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Search.o )
[24 of 42] Compiling Data.Text        ( Data/Text.hs, dist/dist-sandbox-87dd3428/build/Data/Text.o )
[25 of 42] Compiling Data.Text.Encoding ( Data/Text/Encoding.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Encoding.o )
[26 of 42] Compiling Data.Text.Foreign ( Data/Text/Foreign.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Foreign.o )
[27 of 42] Compiling Data.Text.Internal.IO ( Data/Text/Internal/IO.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/IO.o )
[28 of 42] Compiling Data.Text.IO     ( Data/Text/IO.hs, dist/dist-sandbox-87dd3428/build/Data/Text/IO.o )
[29 of 42] Compiling Data.Text.Internal.Lazy ( Data/Text/Internal/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Lazy.o )
[30 of 42] Compiling Data.Text.Internal.Lazy.Fusion ( Data/Text/Internal/Lazy/Fusion.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Lazy/Fusion.o )
[31 of 42] Compiling Data.Text.Internal.Lazy.Search ( Data/Text/Internal/Lazy/Search.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Lazy/Search.o )
[32 of 42] Compiling Data.Text.Lazy.Internal ( Data/Text/Lazy/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Internal.o )
[33 of 42] Compiling Data.Text.Lazy   ( Data/Text/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy.o )
[34 of 42] Compiling Data.Text.Internal.Builder ( Data/Text/Internal/Builder.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Builder.o )
[35 of 42] Compiling Data.Text.Lazy.Builder ( Data/Text/Lazy/Builder.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Builder.o )
[36 of 42] Compiling Data.Text.Internal.Builder.Functions ( Data/Text/Internal/Builder/Functions.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Internal/Builder/Functions.o )
[37 of 42] Compiling Data.Text.Lazy.Builder.Int ( Data/Text/Lazy/Builder/Int.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Builder/Int.o )
[38 of 42] Compiling Data.Text.Lazy.Encoding ( Data/Text/Lazy/Encoding.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Encoding.o )
[39 of 42] Compiling Data.Text.Lazy.IO ( Data/Text/Lazy/IO.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/IO.o )
[40 of 42] Compiling Data.Text.Lazy.Read ( Data/Text/Lazy/Read.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Read.o )
[41 of 42] Compiling Data.Text.Lazy.Builder.RealFloat ( Data/Text/Lazy/Builder/RealFloat.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Lazy/Builder/RealFloat.o )
[42 of 42] Compiling Data.Text.Read   ( Data/Text/Read.hs, dist/dist-sandbox-87dd3428/build/Data/Text/Read.o )
In-place registering text-1.1.0.0...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/text-1.1.0.0
Registering text-1.1.0.0...
Installed text-1.1.0.0
Configuring hashable-1.2.1.0...
Building hashable-1.2.1.0...
Preprocessing library hashable-1.2.1.0...
[1 of 3] Compiling Data.Hashable.Class ( Data/Hashable/Class.hs, dist/dist-sandbox-87dd3428/build/Data/Hashable/Class.o )
[2 of 3] Compiling Data.Hashable.Generic ( Data/Hashable/Generic.hs, dist/dist-sandbox-87dd3428/build/Data/Hashable/Generic.o )
[3 of 3] Compiling Data.Hashable    ( Data/Hashable.hs, dist/dist-sandbox-87dd3428/build/Data/Hashable.o )
In-place registering hashable-1.2.1.0...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/hashable-1.2.1.0
Registering hashable-1.2.1.0...
Installed hashable-1.2.1.0
Configuring scientific-0.2.0.1...
Building scientific-0.2.0.1...
Preprocessing library scientific-0.2.0.1...
[1 of 1] Compiling Data.Scientific  ( src/Data/Scientific.hs, dist/dist-sandbox-87dd3428/build/Data/Scientific.o )
In-place registering scientific-0.2.0.1...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/scientific-0.2.0.1
Registering scientific-0.2.0.1...
Installed scientific-0.2.0.1
Configuring unordered-containers-0.2.3.3...
Building unordered-containers-0.2.3.3...
Preprocessing library unordered-containers-0.2.3.3...
[1 of 8] Compiling Data.HashMap.UnsafeShift ( Data/HashMap/UnsafeShift.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/UnsafeShift.o )
[2 of 8] Compiling Data.HashMap.PopCount ( Data/HashMap/PopCount.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/PopCount.o )
[3 of 8] Compiling Data.HashMap.Unsafe ( Data/HashMap/Unsafe.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/Unsafe.o )
[4 of 8] Compiling Data.HashMap.Array ( Data/HashMap/Array.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/Array.o )
[5 of 8] Compiling Data.HashMap.Base ( Data/HashMap/Base.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/Base.o )
[6 of 8] Compiling Data.HashMap.Strict ( Data/HashMap/Strict.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/Strict.o )
[7 of 8] Compiling Data.HashMap.Lazy ( Data/HashMap/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/HashMap/Lazy.o )
[8 of 8] Compiling Data.HashSet     ( Data/HashSet.hs, dist/dist-sandbox-87dd3428/build/Data/HashSet.o )
In-place registering unordered-containers-0.2.3.3...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/unordered-containers-0.2.3.3
Registering unordered-containers-0.2.3.3...
Installed unordered-containers-0.2.3.3
Configuring attoparsec-0.11.1.0...
Building attoparsec-0.11.1.0...
Preprocessing library attoparsec-0.11.1.0...
[ 1 of 18] Compiling Data.Attoparsec.Text.FastSet ( Data/Attoparsec/Text/FastSet.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Text/FastSet.o )
[ 2 of 18] Compiling Data.Attoparsec.Zepto ( Data/Attoparsec/Zepto.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Zepto.o )
[ 3 of 18] Compiling Data.Attoparsec.Number ( Data/Attoparsec/Number.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Number.o )
[ 4 of 18] Compiling Data.Attoparsec.ByteString.FastSet ( Data/Attoparsec/ByteString/FastSet.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/ByteString/FastSet.o )
[ 5 of 18] Compiling Data.Attoparsec.Internal.Types ( Data/Attoparsec/Internal/Types.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Internal/Types.o )
[ 6 of 18] Compiling Data.Attoparsec.Types ( Data/Attoparsec/Types.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Types.o )
[ 7 of 18] Compiling Data.Attoparsec.Internal ( Data/Attoparsec/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Internal.o )
[ 8 of 18] Compiling Data.Attoparsec.Combinator ( Data/Attoparsec/Combinator.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Combinator.o )
[ 9 of 18] Compiling Data.Attoparsec.ByteString.Internal ( Data/Attoparsec/ByteString/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/ByteString/Internal.o )
[10 of 18] Compiling Data.Attoparsec.Text.Internal ( Data/Attoparsec/Text/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Text/Internal.o )
[11 of 18] Compiling Data.Attoparsec.Text ( Data/Attoparsec/Text.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Text.o )
[12 of 18] Compiling Data.Attoparsec.Text.Lazy ( Data/Attoparsec/Text/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Text/Lazy.o )

Data/Attoparsec/Text/Lazy.hs:38:1:
    Warning: Module `Data.Text.Lazy.Internal' is deprecated:
               Use Data.Text.Internal.Lazy instead
[13 of 18] Compiling Data.Attoparsec.ByteString ( Data/Attoparsec/ByteString.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/ByteString.o )
[14 of 18] Compiling Data.Attoparsec.ByteString.Char8 ( Data/Attoparsec/ByteString/Char8.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/ByteString/Char8.o )
[15 of 18] Compiling Data.Attoparsec.Char8 ( Data/Attoparsec/Char8.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Char8.o )
[16 of 18] Compiling Data.Attoparsec.ByteString.Lazy ( Data/Attoparsec/ByteString/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/ByteString/Lazy.o )
[17 of 18] Compiling Data.Attoparsec.Lazy ( Data/Attoparsec/Lazy.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec/Lazy.o )
[18 of 18] Compiling Data.Attoparsec  ( Data/Attoparsec.hs, dist/dist-sandbox-87dd3428/build/Data/Attoparsec.o )
In-place registering attoparsec-0.11.1.0...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/attoparsec-0.11.1.0
Registering attoparsec-0.11.1.0...
Installed attoparsec-0.11.1.0
Configuring aeson-0.7.0.1...
Building aeson-0.7.0.1...
Preprocessing library aeson-0.7.0.1...
[ 1 of 12] Compiling Data.Aeson.Types.Internal ( Data/Aeson/Types/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Types/Internal.o )
[ 2 of 12] Compiling Data.Aeson.Types.Class ( Data/Aeson/Types/Class.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Types/Class.o )
[ 3 of 12] Compiling Data.Aeson.Functions ( Data/Aeson/Functions.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Functions.o )
[ 4 of 12] Compiling Data.Aeson.Types.Instances ( Data/Aeson/Types/Instances.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Types/Instances.o )
[ 5 of 12] Compiling Data.Aeson.Types.Generic ( Data/Aeson/Types/Generic.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Types/Generic.o )
[ 6 of 12] Compiling Data.Aeson.Types ( Data/Aeson/Types.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Types.o )
[ 7 of 12] Compiling Data.Aeson.Parser.Internal ( Data/Aeson/Parser/Internal.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Parser/Internal.o )
[ 8 of 12] Compiling Data.Aeson.Parser ( Data/Aeson/Parser.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Parser.o )
[ 9 of 12] Compiling Data.Aeson.Encode ( Data/Aeson/Encode.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Encode.o )
[10 of 12] Compiling Data.Aeson.Generic ( Data/Aeson/Generic.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/Generic.o )
[11 of 12] Compiling Data.Aeson       ( Data/Aeson.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson.o )
[12 of 12] Compiling Data.Aeson.TH    ( Data/Aeson/TH.hs, dist/dist-sandbox-87dd3428/build/Data/Aeson/TH.o )
In-place registering aeson-0.7.0.1...
Installing library in
/home/cody/bugtest/.cabal-sandbox/lib/x86_64-linux-ghc-7.4.1/aeson-0.7.0.1
Registering aeson-0.7.0.1...
Installed aeson-0.7.0.1
Configuring bugtest-0.1.0.0...
Building bugtest-0.1.0.0...
Preprocessing executable 'bugtest' for bugtest-0.1.0.0...
[1 of 1] Compiling Main             ( Main.hs, dist/dist-sandbox-87dd3428/build/bugtest/bugtest-tmp/Main.o )
Linking dist/dist-sandbox-87dd3428/build/bugtest/bugtest ...
Installing executable(s) in /home/cody/bugtest/.cabal-sandbox/bin
Installed bugtest-0.1.0.0
cody@zentop:~/bugtest$ 
Contributor

codygman commented Feb 5, 2014

Summary:

However if I add in lens, things go wrong:

cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1
                       , lens == 4.0
  -- hs-source-dirs:      
  default-language:    Haskell2010
cody@zentop:~/bugtest$ cabal install
cabal: No sandbox exists at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal  sandbox
cabal: Please specify a subcommand (see 'help sandbox')
cody@zentop:~/bugtest$ cabal  sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

cabal: Error: some packages failed to install:
aeson-0.7.0.1 failed during the building phase. The exception was:
ExitFailure 1
bugtest-0.1.0.0 depends on aeson-0.7.0.1 which failed to install.
lens-4.0 depends on aeson-0.7.0.1 which failed to install.
cody@zentop:~/bugtest$ 

First fix attempt:

cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Using an existing sandbox located at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1
                       , lens == 4.0
                       , unordered-containers==0.2.3.0
  -- hs-source-dirs:      
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

Installed profunctors-4.0.2
[1 of 1] Compiling Main             ( /tmp/lens-4.0-30776/lens-4.0/Setup.lhs, /tmp/lens-4.0-30776/lens-4.0/dist/dist-sandbox-87dd3428/setup/Main.o )
Linking /tmp/lens-4.0-30776/lens-4.0/dist/dist-sandbox-87dd3428/setup/setup ...
Configuring lens-4.0...
Building lens-4.0...
Preprocessing library lens-4.0...
ghc: could not execute: cpphs
Failed to install lens-4.0
cabal: Error: some packages failed to install:
bugtest-0.1.0.0 depends on lens-4.0 which failed to install.
lens-4.0 failed during the building phase. The exception was:
ExitFailure 1
cody@zentop:~/bugtest$ 

Second fix attempt (Success):

cody@zentop:~/bugtest$ cabal sandbox init
Writing a default package environment file to
/home/cody/bugtest/cabal.sandbox.config
Creating a new sandbox at /home/cody/bugtest/.cabal-sandbox
cody@zentop:~/bugtest$ grep build-depends -A 4 *.cabal 
  build-depends:       base >=4.5 && <4.6
                       , aeson == 0.7.0.1
                       , lens == 4.0
                       , unordered-containers==0.2.3.0
                       , cpphs
cody@zentop:~/bugtest$ cabal install
Resolving dependencies...

... installing dependencies ...

Installed lens-4.0
Configuring bugtest-0.1.0.0...
Building bugtest-0.1.0.0...
Preprocessing executable 'bugtest' for bugtest-0.1.0.0...
Linking dist/dist-sandbox-87dd3428/build/bugtest/bugtest ...
Installing executable(s) in /home/cody/bugtest/.cabal-sandbox/bin
Installed bugtest-0.1.0.0
Collaborator

basvandijk commented Mar 17, 2014

Since #183 is merged I guess we can close this bug.

basvandijk closed this Mar 17, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment