File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -195,10 +195,10 @@ data GhciPkgDesc = GhciPkgDesc
195
195
, target :: ! Target
196
196
}
197
197
198
- -- Mapping from a module name to a map with all of the paths that use that name.
199
- -- Each of those paths is associated with a set of components that contain it.
200
- -- The purpose of this complex structure is for use in
201
- -- 'checkForDuplicateModules'.
198
+ -- | Type synonym representing maps from a module name to a map with all of the
199
+ -- paths that use that name. Each of those paths is associated with a set of
200
+ -- components that contain it. The purpose of this complex structure is for use
201
+ -- in 'checkForDuplicateModules'.
202
202
type ModuleMap =
203
203
Map ModuleName (Map (Path Abs File ) (Set (PackageName , NamedComponent )))
204
204
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ buildOptsParser cmd = BuildOptsCLI
127
127
<> internal
128
128
)
129
129
130
+ -- | Parser for build targets. Also used by the @stack dot@ command.
130
131
targetsParser :: Parser [Text ]
131
132
targetsParser =
132
133
many (textArgument
@@ -138,6 +139,7 @@ targetsParser =
138
139
\for details."
139
140
))
140
141
142
+ -- | Parser for the @--flag@ option, for Cabal flags.
141
143
flagsParser :: Parser (Map. Map ApplyCLIFlag (Map. Map FlagName Bool ))
142
144
flagsParser = Map. unionsWith Map. union
143
145
<$> many (option readFlag
You can’t perform that action at this time.
0 commit comments