Fix reading of older Cabal setup-configs

This commit is contained in:
Daniel Gröber
2014-05-09 20:35:13 +02:00
parent 2e3b172b0e
commit b8f9498f83
6 changed files with 145 additions and 96 deletions

View File

@@ -0,0 +1,13 @@
-- | ComponentLocalBuildInfo for Cabal <= 1.16
module Language.Haskell.GhcMod.Cabal16 (
ComponentLocalBuildInfo
, componentPackageDeps
) where
import Distribution.Package (InstalledPackageId, PackageIdentifier)
-- From Cabal <= 1.16
data ComponentLocalBuildInfo = ComponentLocalBuildInfo {
componentPackageDeps :: [(InstalledPackageId, PackageIdentifier)]
}
deriving (Read, Show)