From 73863e0b000543c946facb1b2017d636192fc791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Mon, 4 Jan 2016 21:44:49 +0100 Subject: [PATCH] Remove GMEWrongWorkingDirectory constructor --- Language/Haskell/GhcMod/Error.hs | 5 ----- Language/Haskell/GhcMod/Types.hs | 2 -- 2 files changed, 7 deletions(-) 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