Commit 218c6bb6 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Add 'suppressOverrideArgs'.

parent 43624cfb
......@@ -48,6 +48,7 @@ module Distribution.Simple.Program (
, ProgramLocation(..)
, runProgram
, getProgramOutput
, suppressOverrideArgs
-- * Program invocations
, ProgramInvocation(..)
......
......@@ -24,6 +24,7 @@ module Distribution.Simple.Program.Types (
-- * Configured program and related functions
ConfiguredProgram(..),
programPath,
suppressOverrideArgs,
ProgArg,
ProgramLocation(..),
simpleConfiguredProgram,
......@@ -113,6 +114,10 @@ data ProgramLocation
programPath :: ConfiguredProgram -> FilePath
programPath = locationPath . programLocation
-- | Suppress any extra arguments added by the user.
suppressOverrideArgs :: ConfiguredProgram -> ConfiguredProgram
suppressOverrideArgs prog = prog { programOverrideArgs = [] }
-- | Make a simple named program.
--
-- By default we'll just search for it in the path and not try to find the
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment