Closed aycanirican closed 9 years ago
Example section of pipes-csv.cabal:
test-suite hunit type: exitcode-stdio-1.0 main-is: test-pipes-csv.hs ghc-options: -w -threaded -rtsopts -with-rtsopts=-N hs-source-dirs: test if !flag(test-hunit) buildable: False else build-depends: base , HUnit >= 1.2 , pipes >= 4 && < 5 , pipes-bytestring >= 2 && < 3 , pipes-csv , cassava , vector , bytestring , test-framework >= 0.6 , test-framework-hunit >= 0.2
transforms to an illegal section whose type has "-":
test-suite hunit if !flag(test-hunit) type: - buildable: False else build-depends: base -any, HUnit >=1.2, pipes >=4 && <5, pipes-bytestring >=2 && <3, pipes-csv -any, cassava -any, vector -any, bytestring -any, test-framework >=0.6, test-framework-hunit >=0.2 type: - buildable: True type: exitcode-stdio-1.0 main-is: test-pipes-csv.hs buildable: True hs-source-dirs: test ghc-options: -w -threaded -rtsopts -with-rtsopts=-N
IMHO, the issue has caused by a bug in the version of Cabal that was used at the time. I can no longer re-produce this error with any recent build of jailbreak-cabal (which now uses Cabal >= 1.18.x).
Example section of pipes-csv.cabal:
transforms to an illegal section whose type has "-":