
On 6 June 2017 at 08:33, Ivan Lazar Miljenovic
On 6 June 2017 at 07:55, Henk-Jan van Tuyl
wrote: wxc/setup.hs uses versionBranch from Cabal[0]; the function versionBranch is not in Cabal 2, that is why I added "Cabal < 2" to wxc.cabal. When installing wxc the first time, the right version of Cabal is picked, when "cabal install" is invoked a second time, GHC tries to compile wxc/setup.hs again, but with the wrong version of Cabal (note: the release candidate of GHC comes with Cabal 2)
[0] https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/Distribution-Make.ht...
If you look at the source for this module, you'll see that it isn't defined in there; it's actually from Data.Version in base.
You can see this more specifically here: https://hackage.haskell.org/package/Cabal-1.24.2.0/docs/src/Distribution-Ver... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com