Commit 3e6ef767 authored by Duncan Coutts's avatar Duncan Coutts

Update new cabal init code for the recent package id changes

parent 44e3bc78
......@@ -20,7 +20,7 @@ module Distribution.Client.Init.Heuristics (
) where
import Distribution.Simple.Setup(Flag(..))
import Distribution.ModuleName ( ModuleName, fromString )
import Distribution.Simple.PackageIndex
import Distribution.Client.PackageIndex
( allPackagesByName )
import qualified Distribution.PackageDescription as PD
( category, packageDescription )
......
......@@ -818,7 +818,7 @@ initCommand = CommandUI {
}
where readMaybe s = case reads s of
[(x,"")] -> Just x
otherwise -> Nothing
_ -> Nothing
-- ------------------------------------------------------------
-- * GetOpt Utils
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment