File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{-# LANGUAGE DataKinds #-}
2+ {-# LANGUAGE LambdaCase #-}
23{-# LANGUAGE PatternSynonyms #-}
34{-# LANGUAGE RecordWildCards #-}
4- {-# LANGUAGE LambdaCase #-}
55
66module Distribution.Client.CmdClean (cleanCommand , cleanAction ) where
77
@@ -13,8 +13,8 @@ import Distribution.Client.Config
1313 )
1414import Distribution.Client.DistDirLayout
1515 ( DistDirLayout (.. )
16- , defaultDistDirLayout
1716 , ProjectRoot (ProjectRootImplicit )
17+ , defaultDistDirLayout
1818 , defaultProjectFile
1919 )
2020import Distribution.Client.Errors
@@ -221,7 +221,7 @@ cleanAction (ProjectFlags{..}, CleanFlags{..}) extraArgs _ = do
221221 removeDirectoryRecursive cache
222222
223223isValidProjectRoot :: ProjectRoot -> IO Bool
224- isValidProjectRoot = \ case
224+ isValidProjectRoot = \ case
225225 (ProjectRootImplicit dir) -> do
226226 let projectFile = dir </> defaultProjectFile
227227 projectExists <- doesFileExist projectFile
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ exceptionMessageCabalInstall e = case e of
887887 renderCabalFileParseError cbfError
888888 ProjectConfigParseFailure pcfError ->
889889 renderProjectConfigParseError pcfError
890- CleanActionNotPackage ->
890+ CleanActionNotPackage ->
891891 " Not a cabal project or package directory; skipping project cleanup."
892892
893893instance Exception (VerboseException CabalInstallException ) where
You can’t perform that action at this time.
0 commit comments