diff --git a/Language/Haskell/GhcMod/Error.hs b/Language/Haskell/GhcMod/Error.hs index e69cc34..4ec373c 100644 --- a/Language/Haskell/GhcMod/Error.hs +++ b/Language/Haskell/GhcMod/Error.hs @@ -104,11 +104,6 @@ gmeDoc e = case e of GMETooManyCabalFiles cfs -> text $ "Multiple cabal files found. Possible cabal files: \"" ++ intercalate "\", \"" cfs ++"\"." - GMEWrongWorkingDirectory projdir cdir -> - (text $ "You must run ghc-mod in the project directory as returned by `ghc-mod root`.") - <+> text "Currently in:" <+> showDoc cdir - <> text "but should be in" <+> showDoc projdir - <> text "." ghcExceptionDoc :: GhcException -> Doc ghcExceptionDoc e@(CmdLineError _) = diff --git a/Language/Haskell/GhcMod/Types.hs b/Language/Haskell/GhcMod/Types.hs index 40a8a83..51d4c3c 100644 --- a/Language/Haskell/GhcMod/Types.hs +++ b/Language/Haskell/GhcMod/Types.hs @@ -347,8 +347,6 @@ data GhcModError | GMETooManyCabalFiles [FilePath] -- ^ Too many cabal files found. - | GMEWrongWorkingDirectory FilePath FilePath - deriving (Eq,Show,Typeable) instance Error GhcModError where