File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ import System.Environment ( lookupEnv )
115
115
import System.FileLock
116
116
( SharedExclusive (.. ), withFileLock , withTryFileLock )
117
117
118
+ -- | Type representing environments in which the @Setup.hs@ commands of Cabal
119
+ -- (the library) can be executed.
118
120
data ExecuteEnv = ExecuteEnv
119
121
{ installLock :: ! (MVar () )
120
122
, buildOpts :: ! BuildOpts
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ instance Exception NixException where
49
49
" Error: [S-7384]\n "
50
50
++ " Cannot determine project root directory."
51
51
52
+ -- | Execute @nix-shell@, replacing the current process.
52
53
runShellAndExit :: RIO Config void
53
54
runShellAndExit = do
54
55
inContainer <- getInContainer -- TODO we can probably assert that this is False based on Stack.Runners now
@@ -162,9 +163,10 @@ escape str =
162
163
++ foldr (\ c -> if c == ' \' ' then (" '\" '\" '" ++ ) else (c: )) " " str
163
164
++ " '"
164
165
165
- -- | Command-line argument for "nix"
166
+ -- | Command-line argument for "nix".
166
167
nixCmdName :: String
167
168
nixCmdName = " nix"
168
169
170
+ -- | Command-line option to show only @--nix-*@ options.
169
171
nixHelpOptName :: String
170
172
nixHelpOptName = nixCmdName ++ " -help"
Original file line number Diff line number Diff line change 3
3
4
4
{-|
5
5
Module : Stack.Options.NixParser
6
+ Description : Parser for options for Nix integration.
6
7
License : BSD-3-Clause
8
+
9
+ Parser for Stack's command line options for Nix integration.
7
10
-}
8
11
9
12
module Stack.Options.NixParser
@@ -23,6 +26,7 @@ import Stack.Options.Utils ( hideMods )
23
26
import Stack.Prelude
24
27
import Stack.Types.Nix ( NixOptsMonoid (.. ) )
25
28
29
+ -- | Parser for Stack's command line options for integration with Nix.
26
30
nixOptsParser :: Bool -> Parser NixOptsMonoid
27
31
nixOptsParser hide0 = overrideActivation <$>
28
32
( NixOptsMonoid
You can’t perform that action at this time.
0 commit comments