File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
cabal-install/src/Distribution/Client Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ import Distribution.PackageDescription
52
52
( FlagAssignment
53
53
, nullFlagAssignment
54
54
)
55
- import Distribution.Simple.Flag (Flag , pattern Flag )
55
+ import Distribution.Simple.Flag (pattern Flag )
56
56
import Distribution.Simple.Utils
57
57
( dieWithException
58
58
, notice
Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE LambdaCase #-}
2
2
{-# LANGUAGE PatternSynonyms #-}
3
+ {-# LANGUAGE RecordWildCards #-}
3
4
4
5
-- |
5
6
-- Module : Distribution.Client.CmdPath
@@ -225,7 +226,7 @@ pathName ConfigPathInstallDir = "installdir"
225
226
226
227
-- | Entry point for the 'path' command.
227
228
pathAction :: NixStyleFlags PathFlags -> [String ] -> GlobalFlags -> IO ()
228
- pathAction flags@ NixStyleFlags {extraFlags = pathFlags', .. } cliTargetStrings globalFlags = withContextAndSelectors verbosity AcceptNoTargets Nothing flags [] globalFlags OtherCommand $ \ _ baseCtx _ -> do
229
+ pathAction flags@ NixStyleFlags {extraFlags = pathFlags'} cliTargetStrings globalFlags = withContextAndSelectors verbosity AcceptNoTargets Nothing flags [] globalFlags OtherCommand $ \ _ baseCtx _ -> do
229
230
let pathFlags =
230
231
if pathCompiler pathFlags' == NoFlag && pathDirectories pathFlags' == NoFlag
231
232
then -- if not a single key to query is given, query everything!
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ import Distribution.Client.ReplFlags
179
179
, topReplOptions
180
180
)
181
181
import Distribution.Compat.Binary (decode )
182
- import Distribution.Simple.Flag (fromFlagOrDefault , pattern Flag , toFlag )
182
+ import Distribution.Simple.Flag (fromFlagOrDefault , pattern Flag )
183
183
import Distribution.Simple.Program.Builtin (ghcProgram )
184
184
import Distribution.Simple.Program.Db (requireProgram )
185
185
import Distribution.Simple.Program.Run
@@ -289,8 +289,6 @@ multiReplDecision ctx compiler flags =
289
289
-- "Distribution.Client.ProjectOrchestration"
290
290
replAction :: NixStyleFlags ReplFlags -> [String ] -> GlobalFlags -> IO ()
291
291
replAction flags@ NixStyleFlags {extraFlags = r@ ReplFlags {.. }, .. } targetStrings' globalFlags = do
292
- let withCtx strings = withContextAndSelectors verbosity AcceptNoTargets (Just LibKind ) flags strings globalFlags ReplCommand
293
-
294
292
-- NOTE: The REPL will work with no targets in the context of a project if a
295
293
-- sole package is in the same directory as the project file. To have the same
296
294
-- behaviour when the package is somewhere else we adjust the targets.
You can’t perform that action at this time.
0 commit comments