@dcoutts asked me to file this:
I was having this weird issues with the devel version of cabal where some cabal invocations would fail with the following rather non-obvious error message
cabal: Prelude.chr: bad argument: 2041223
Even with -v3 this is the very first output you get from cabal. Only strace provided the hint that setup-config was the last file read before that error message was emitted.
(the underlying problem was most likely that cabal had been compiled against an older snapshot of the Cabal lib than the Cabal lib snapshot registered in the pkg db. And those two snapshots probably disagreed on the setup-config schema)
@dcoutts asked me to file this:
I was having this weird issues with the devel version of
cabalwhere somecabalinvocations would fail with the following rather non-obvious error messageEven with
-v3this is the very first output you get fromcabal. Onlystraceprovided the hint thatsetup-configwas the last file read before that error message was emitted.(the underlying problem was most likely that
cabalhad been compiled against an older snapshot of theCaballib than theCaballib snapshot registered in the pkg db. And those two snapshots probably disagreed on thesetup-configschema)