Skip to content

Instantly share code, notes, and snippets.

@benkolera
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save benkolera/aa309437ebbb5bc98455 to your computer and use it in GitHub Desktop.

Select an option

Save benkolera/aa309437ebbb5bc98455 to your computer and use it in GitHub Desktop.
Cabal is making me sad today. Can't figure it out and need some guidance.
With this cabal version:
bkolera at Ben-imac in /tmp/barebones
$ cabal --version
cabal-install version 1.20.0.1
using version 1.20.0.0 of the Cabal library
And a cabal file looks like this:
Name: barebones
Version: 0.1
Synopsis: Project Synopsis Here
Description: Project Description Here
License: AllRightsReserved
Author: Author
Maintainer: maintainer@example.com
Stability: Experimental
Category: Web
Build-type: Simple
Cabal-version: >=1.2
Executable barebones
hs-source-dirs: src
main-is: Main.hs
Build-depends:
base >= 4 && < 5
, MonadCatchIO-transformers >= 0.2.1 && < 0.4
, bifunctors >= 4.0
, bytestring >= 0.9.1 && < 0.11
, case-insensitive >= 1.2
, containers >= 0.5
, data-default >= 0.2.1 && < 0.4
, either >= 4.1
, errors >= 1.4
, free >= 4.7
, http-client >= 0.3.2
, http-types >= 0.8
, lens >= 4.1
, mtl >= 2 && < 2.2
, safe >= 0.3
, semigroups >= 0.13
, snap-core >= 0.9 && < 0.11
, snap-server >= 0.9 && < 0.11
, system-filepath >= 0.4
, text >= 0.11 && < 1.2
, wreq >= 0.1
, xml-conduit >= 1.2
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-unused-do-bind
In a fresh sandbox:
bkolera at Ben-imac in /tmp/barebones
$ cabal sandbox hc-pkg list
/usr/local/lib/ghc-7.8.2/package.conf.d
Cabal-1.18.1.3
array-0.5.0.0
base-4.7.0.0
bin-package-db-0.0.0.0
binary-0.7.1.0
bytestring-0.10.4.0
containers-0.5.5.1
deepseq-1.3.0.2
directory-1.2.1.0
filepath-1.3.0.2
ghc-7.8.2
ghc-prim-0.3.1.0
haskell2010-1.1.2.0
haskell98-2.0.0.3
hoopl-3.10.0.1
hpc-0.6.0.1
integer-gmp-0.5.1.0
old-locale-1.0.0.6
old-time-1.1.0.2
pretty-1.1.1.1
process-1.2.0.0
rts-1.0
template-haskell-2.9.0.0
time-1.4.2
transformers-0.3.0.0
unix-2.7.0.1
/private/tmp/barebones/.cabal-sandbox/x86_64-osx-ghc-7.8.2-packages.conf.d
running 'cabal install --v=3' gives me:
Using a sandbox located at /private/tmp/barebones/.cabal-sandbox
Searching for ghc in path.
Found ghc at /usr/local/bin/ghc
("/usr/local/bin/ghc",["--numeric-version"])
/usr/local/bin/ghc is version 7.8.2
looking for tool ghc-pkg near compiler in /usr/local/bin
found ghc-pkg in /usr/local/bin/ghc-pkg
("/usr/local/bin/ghc-pkg",["--version"])
/usr/local/bin/ghc-pkg is version 7.8.2
("/usr/local/bin/ghc",["--supported-languages"])
("/usr/local/bin/ghc",["--info"])
The package database already exists:
/private/tmp/barebones/.cabal-sandbox/x86_64-osx-ghc-7.8.2-packages.conf.d
Reading available packages...
Reading available packages...
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--package-db=/private/tmp/barebones/.cabal-sandbox/x86_64-osx-ghc-7.8.2-packages.conf.d","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Found no modified add-source deps.
Reading installed packages...
("/usr/local/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/local/bin/ghc-pkg",["dump","--package-db=/private/tmp/barebones/.cabal-sandbox/x86_64-osx-ghc-7.8.2-packages.conf.d","-v0"])
("/usr/local/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
[__0] trying: barebones-0.1 (user goal)
[__1] trying: base-4.7.0.0/installed-a33... (dependency of barebones-0.1)
[__2] trying: rts-1.0/installedbuil... (dependency of base-4.7.0.0/installed-a33...)
[__3] trying: integer-gmp-0.5.1.0/installed-dc4... (dependency of base-4.7.0.0/installed-a33...)
[__4] trying: ghc-prim-0.3.1.0/installed-948... (dependency of base-4.7.0.0/installed-a33...)
[__5] trying: xml-conduit-1.2.0.1 (dependency of barebones-0.1)
[__6] trying: xml-conduit-1.2.0.1:!test
[__7] trying: deepseq-1.3.0.2/installed-87c... (dependency of xml-conduit-1.2.0.1)
[__8] trying: array-0.5.0.0/installed-9f2... (dependency of deepseq-1.3.0.2/installed-87c...)
[__9] trying: blaze-html-0.7.0.2 (dependency of xml-conduit-1.2.0.1)
[_10] trying: blaze-html-0.7.0.2:!test
[_11] trying: blaze-markup-0.6.1.0 (dependency of xml-conduit-1.2.0.1)
[_12] trying: blaze-markup-0.6.1.0:!test
[_13] trying: monad-control-0.3.3.0 (dependency of xml-conduit-1.2.0.1)
[_14] trying: monad-control-0.3.3.0:+instancest
[_15] trying: transformers-base-0.4.2 (dependency of monad-control-0.3.3.0)
[_16] trying: transformers-base-0.4.2:+orphaninstances
[_17] trying: transformers-0.3.0.0/installed-7df... (dependency of xml-conduit-1.2.0.1)
[_18] trying: blaze-builder-0.3.3.2 (dependency of xml-conduit-1.2.0.1)
[_19] trying: attoparsec-0.11.3.4 (dependency of xml-conduit-1.2.0.1)
[_20] trying: attoparsec-0.11.3.4:-developer
[_21] trying: attoparsec-0.11.3.4:!bench
[_22] trying: attoparsec-0.11.3.4:!test
[_23] trying: scientific-0.3.2.1 (dependency of attoparsec-0.11.3.4)
[_24] trying: scientific-0.3.2.1:+bytestring-builder
[_25] trying: scientific-0.3.2.1:!bench
[_26] trying: scientific-0.3.2.1:!test
[_27] trying: hashable-1.2.2.0 (dependency of scientific-0.3.2.1)
[_28] trying: hashable-1.2.2.0:-sse41
[_29] trying: hashable-1.2.2.0:+sse2
[_30] trying: hashable-1.2.2.0:+integer-gmp
[_31] trying: hashable-1.2.2.0:!bench
[_32] trying: hashable-1.2.2.0:!test
[_33] trying: xml-types-0.3.4 (dependency of xml-conduit-1.2.0.1)
[_34] trying: blaze-builder-conduit-1.1.0 (dependency of xml-conduit-1.2.0.1)
[_35] trying: attoparsec-conduit-1.1.0 (dependency of xml-conduit-1.2.0.1)
[_36] trying: resourcet-1.1.2.2 (dependency of xml-conduit-1.2.0.1)
[_37] trying: resourcet-1.1.2.2:!test
[_38] trying: exceptions-0.6.1 (dependency of resourcet-1.1.2.2)
[_39] trying: exceptions-0.6.1:!test
[_40] trying: mmorph-1.0.3 (dependency of resourcet-1.1.2.2)
[_41] trying: lifted-base-0.2.2.2 (dependency of resourcet-1.1.2.2)
[_42] trying: lifted-base-0.2.2.2:!bench
[_43] trying: lifted-base-0.2.2.2:!test
[_44] trying: conduit-extra-1.1.0.3 (dependency of xml-conduit-1.2.0.1)
[_45] trying: conduit-extra-1.1.0.3:!test
[_46] trying: streaming-commons-0.1.2.4 (dependency of conduit-extra-1.1.0.3)
[_47] trying: streaming-commons-0.1.2.4:!bench
[_48] trying: streaming-commons-0.1.2.4:!test
[_49] trying: unix-2.7.0.1/installed-01f... (dependency of streaming-commons-0.1.2.4)
[_50] trying: time-1.4.2/installed-a20... (dependency of unix-2.7.0.1/installed-01f...)
[_51] trying: old-locale-1.0.0.6/installed-be1... (dependency of time-1.4.2/installed-a20...)
[_52] trying: zlib-0.5.4.1 (dependency of streaming-commons-0.1.2.4)
[_53] trying: random-1.0.1.1 (dependency of streaming-commons-0.1.2.4)
[_54] trying: primitive-0.5.3.0 (dependency of conduit-extra-1.1.0.3)
[_55] trying: network-2.5.0.0 (dependency of conduit-extra-1.1.0.3)
[_56] trying: network-2.5.0.0:!test
[_57] trying: parsec-3.1.5 (dependency of network-2.5.0.0)
[_58] trying: parsec-3.1.5:+base4
[_59] trying: filepath-1.3.0.2/installed-154... (dependency of conduit-extra-1.1.0.3)
[_60] trying: directory-1.2.1.0/installed-4bf... (dependency of conduit-extra-1.1.0.3)
[_61] trying: conduit-1.1.2.1 (dependency of xml-conduit-1.2.0.1)
[_62] trying: conduit-1.1.2.1:!bench
[_63] trying: conduit-1.1.2.1:!test
[_64] trying: void-0.6.1 (dependency of conduit-1.1.2.1)
[_65] trying: void-0.6.1:-safe
[_66] trying: wreq-0.1.0.1 (dependency of barebones-0.1)
[_67] trying: wreq-0.1.0.1:-httpbin
[_68] trying: wreq-0.1.0.1:+doctest
[_69] trying: wreq-0.1.0.1:!test
[_70] trying: template-haskell-2.9.0.0/installed-ed6... (dependency of wreq-0.1.0.1)
[_71] trying: pretty-1.1.1.1/installed-947... (dependency of template-haskell-2.9.0.0/installed-ed6...)
[_72] trying: mime-types-0.1.0.4 (dependency of wreq-0.1.0.1)
[_73] trying: http-client-tls-0.2.1.1 (dependency of wreq-0.1.0.1)
[_74] trying: http-client-tls-0.2.1.1:!test
[_75] trying: tls-1.2.7 (dependency of http-client-tls-0.2.1.1)
[_76] trying: tls-1.2.7:+compat
[_77] trying: tls-1.2.7:!bench
[_78] trying: tls-1.2.7:!test
[_79] trying: x509-validation-1.5.0 (dependency of tls-1.2.7)
[_80] trying: pem-0.2.2 (dependency of x509-validation-1.5.0)
[_81] trying: pem-0.2.2:!test
[_82] trying: base64-bytestring-1.0.0.1 (dependency of pem-0.2.2)
[_83] trying: base64-bytestring-1.0.0.1:!test
[_84] trying: process-1.2.0.0/installed-58d... (dependency of x509-validation-1.5.0)
[_85] trying: x509-store-1.4.4 (dependency of tls-1.2.7)
[_86] trying: x509-store-1.4.4:-test
[_87] trying: x509-store-1.4.4:-executable
[_88] trying: x509-1.4.11 (dependency of tls-1.2.7)
[_89] trying: x509-1.4.11:!test
[_90] trying: asn1-parse-0.8.1 (dependency of x509-1.4.11)
[_91] trying: asn1-encoding-0.8.1.3 (dependency of tls-1.2.7)
[_92] trying: asn1-encoding-0.8.1.3:-test
[_93] trying: asn1-types-0.2.3 (dependency of tls-1.2.7)
[_94] trying: cipher-aes-0.2.7 (dependency of tls-1.2.7)
[_95] trying: cipher-aes-0.2.7:!bench
[_96] trying: cipher-aes-0.2.7:!test
[_97] trying: crypto-cipher-types-0.0.9 (dependency of cipher-aes-0.2.7)
[_98] trying: securemem-0.1.3 (dependency of cipher-aes-0.2.7)
[_99] trying: cipher-rc4-0.1.4 (dependency of tls-1.2.7)
[100] trying: cipher-rc4-0.1.4:!bench
[101] trying: cipher-rc4-0.1.4:!test
[102] trying: crypto-pubkey-0.2.4 (dependency of tls-1.2.7)
[103] trying: crypto-pubkey-0.2.4:-benchmark
[104] trying: crypto-pubkey-0.2.4:!bench
[105] trying: crypto-pubkey-0.2.4:!test
[106] trying: crypto-pubkey-types-0.4.2.2 (dependency of tls-1.2.7)
[107] trying: crypto-numbers-0.2.3 (dependency of tls-1.2.7)
[108] trying: crypto-numbers-0.2.3:+integer-gmp
[109] trying: crypto-numbers-0.2.3:!bench
[110] trying: crypto-numbers-0.2.3:!test
[111] trying: vector-0.10.9.1 (dependency of crypto-numbers-0.2.3)
[112] trying: vector-0.10.9.1:-unsafechecks
[113] trying: vector-0.10.9.1:-internalchecks
[114] trying: vector-0.10.9.1:+boundschecks
[115] trying: crypto-random-0.0.7 (dependency of tls-1.2.7)
[116] trying: cryptohash-0.11.4 (dependency of tls-1.2.7)
[117] trying: cryptohash-0.11.4:!bench
[118] trying: cryptohash-0.11.4:!test
[119] trying: byteable-0.1.1 (dependency of tls-1.2.7)
[120] trying: cereal-0.4.0.1 (dependency of tls-1.2.7)
[121] trying: cereal-0.4.0.1:+split-base
[122] trying: connection-0.2.1 (dependency of http-client-tls-0.2.1.1)
[123] trying: x509-system-1.4.5 (dependency of connection-0.2.1)
[124] trying: socks-0.5.4 (dependency of connection-0.2.1)
[125] trying: cprng-aes-0.5.2 (dependency of connection-0.2.1)
[126] trying: cprng-aes-0.5.2:!bench
[127] trying: data-default-class-0.0.1 (dependency of http-client-tls-0.2.1.1)
[128] trying: aeson-0.7.0.6 (dependency of wreq-0.1.0.1)
[129] rejecting: aeson-0.7.0.6:-new-bytestring-builder (conflict: unix => bytestring==0.10.4.0/installed-bb0..., aeson-0.7.0.6:new-bytestring-builder => bytestring<0.10.4.0)
[129] trying: aeson-0.7.0.6:+new-bytestring-builder
[130] trying: aeson-0.7.0.6:-developer
[131] trying: aeson-0.7.0.6:-blaze-builder
[132] trying: aeson-0.7.0.6:!test
[133] trying: dlist-0.7.0.1 (dependency of aeson-0.7.0.6)
[134] trying: dlist-0.7.0.1:!test
[135] trying: unordered-containers-0.2.4.0 (dependency of aeson-0.7.0.6)
[136] trying: unordered-containers-0.2.4.0:-debug
[137] trying: unordered-containers-0.2.4.0:!bench
[138] trying: unordered-containers-0.2.4.0:!test
[139] trying: syb-0.4.1 (dependency of aeson-0.7.0.6)
[140] trying: syb-0.4.1:!test
[141] trying: text-1.1.1.2 (dependency of barebones-0.1)
[142] trying: text-1.1.1.2:-integer-simple
[143] trying: text-1.1.1.2:-developer
[144] trying: text-1.1.1.2:!test
[145] trying: system-filepath-0.4.11 (dependency of barebones-0.1)
[146] trying: system-filepath-0.4.11:!test
[147] trying: snap-server-0.9.4.4 (dependency of barebones-0.1)
[148] trying: snap-server-0.9.4.4:-portable
[149] trying: snap-server-0.9.4.4:-openssl
[150] trying: snap-server-0.9.4.4:-debug
[151] trying: unix-compat-0.4.1.1 (dependency of snap-server-0.9.4.4)
[152] trying: unix-compat-0.4.1.1:-old-time
[153] trying: enumerator-0.4.20 (dependency of snap-server-0.9.4.4)
[154] trying: blaze-builder-enumerator-0.2.0.5 (dependency of snap-server-0.9.4.4)
[155] trying: attoparsec-enumerator-0.3.2 (dependency of snap-server-0.9.4.4)
[156] trying: snap-core-0.9.6.2 (dependency of barebones-0.1)
[157] trying: snap-core-0.9.6.2:-portable
[158] trying: snap-core-0.9.6.2:-debug
[159] trying: bytestring-mmap-0.2.2 (dependency of snap-core-0.9.6.2:-portable)
[160] trying: bytestring-mmap-0.2.2:+split-base
[161] trying: zlib-enum-0.2.3 (dependency of snap-core-0.9.6.2)
[162] trying: zlib-enum-0.2.3:-test
[163] trying: zlib-bindings-0.1.1.5 (dependency of zlib-enum-0.2.3)
[164] trying: zlib-bindings-0.1.1.5:!test
[165] trying: regex-posix-0.95.2 (dependency of snap-core-0.9.6.2)
[166] trying: regex-posix-0.95.2:+splitbase
[167] trying: regex-posix-0.95.2:+newbase
[168] trying: regex-base-0.93.2 (dependency of regex-posix-0.95.2:+newbase)
[169] trying: regex-base-0.93.2:+splitbase
[170] trying: regex-base-0.93.2:+newbase
[171] trying: HUnit-1.2.5.2 (dependency of snap-core-0.9.6.2)
[172] trying: HUnit-1.2.5.2:+base4
[173] trying: semigroups-0.14 (dependency of barebones-0.1)
[174] trying: semigroups-0.14:+unordered-containers
[175] trying: semigroups-0.14:+text
[176] trying: semigroups-0.14:+hashable
[177] trying: semigroups-0.14:+containers
[178] trying: semigroups-0.14:+bytestring
[179] trying: nats-0.2 (dependency of semigroups-0.14)
[180] trying: nats-0.2:+hashable
[181] trying: safe-0.3.4 (dependency of barebones-0.1)
[182] next goal: mtl (dependency of barebones-0.1)
[182] rejecting: mtl-2.2.0.1, 2.2 (conflict: barebones => mtl>=2 && <2.2)
[182] trying: mtl-2.1.3.1
[183] trying: lens-4.1.2.1 (dependency of barebones-0.1)
[184] trying: lens-4.1.2.1:+trustworthy
[185] trying: lens-4.1.2.1:+test-properties
[186] trying: lens-4.1.2.1:+test-hunit
[187] trying: lens-4.1.2.1:+test-hlint
[188] trying: lens-4.1.2.1:+test-doctests
[189] trying: lens-4.1.2.1:-safe
[190] trying: lens-4.1.2.1:-old-inline-pragmas
[191] trying: lens-4.1.2.1:-lib-werror
[192] trying: lens-4.1.2.1:-j
[193] trying: lens-4.1.2.1:+inlining
[194] trying: lens-4.1.2.1:-dump-splices
[195] trying: lens-4.1.2.1:-benchmark-uniplate
[196] trying: lens-4.1.2.1:!bench
[197] trying: lens-4.1.2.1:!test
[198] trying: utf8-string-0.3.8 (dependency of lens-4.1.2.1)
[199] trying: utf8-string-0.3.8:-bytestring-in-base
[200] trying: transformers-compat-0.3.2 (dependency of lens-4.1.2.1)
[201] trying: transformers-compat-0.3.2:-transformers3
[__0] fail (backjumping, conflict set: )
cabal: Could not resolve dependencies:
Dependency tree exhaustively searched.
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment