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 1
1
{-# LANGUAGE DataKinds #-}
2
+ {-# LANGUAGE LambdaCase #-}
2
3
{-# LANGUAGE PatternSynonyms #-}
3
4
{-# LANGUAGE RecordWildCards #-}
4
- {-# LANGUAGE LambdaCase #-}
5
5
6
6
module Distribution.Client.CmdClean (cleanCommand , cleanAction ) where
7
7
@@ -13,8 +13,8 @@ import Distribution.Client.Config
13
13
)
14
14
import Distribution.Client.DistDirLayout
15
15
( DistDirLayout (.. )
16
- , defaultDistDirLayout
17
16
, ProjectRoot (ProjectRootImplicit )
17
+ , defaultDistDirLayout
18
18
, defaultProjectFile
19
19
)
20
20
import Distribution.Client.Errors
@@ -221,7 +221,7 @@ cleanAction (ProjectFlags{..}, CleanFlags{..}) extraArgs _ = do
221
221
removeDirectoryRecursive cache
222
222
223
223
isValidProjectRoot :: ProjectRoot -> IO Bool
224
- isValidProjectRoot = \ case
224
+ isValidProjectRoot = \ case
225
225
(ProjectRootImplicit dir) -> do
226
226
let projectFile = dir </> defaultProjectFile
227
227
projectExists <- doesFileExist projectFile
Original file line number Diff line number Diff line change @@ -887,7 +887,7 @@ exceptionMessageCabalInstall e = case e of
887
887
renderCabalFileParseError cbfError
888
888
ProjectConfigParseFailure pcfError ->
889
889
renderProjectConfigParseError pcfError
890
- CleanActionNotPackage ->
890
+ CleanActionNotPackage ->
891
891
" Not a cabal project or package directory; skipping project cleanup."
892
892
893
893
instance Exception (VerboseException CabalInstallException ) where
You can’t perform that action at this time.
0 commit comments