parseVersion :: String -> Hsenv Version
parseVersion s = case Util.Cabal.parseVersion s of
                    Nothing      -> throwError $ HsenvException $ "Couldn't parse " ++ s ++ " as a package version"
                    Just version -> return version
parseVersion :: String -> Hsenv Version
parseVersion s = case Util.Cabal.parseVersion s of
                    Nothing      -> throwError $ HsenvException $ "Couldn't parse " ++ s ++ " as a package version"
                    Just version -> return version
parseVersion s = case Util.Cabal.parseVersion s of
                    Nothing      -> throwError $ HsenvException $ "Couldn't parse " ++ s ++ " as a package version"
                    Just version -> return version