File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -122,24 +122,30 @@ data SnapshotType
122
122
-- ^ Stackage Nightly
123
123
deriving (Eq , Ord , Show )
124
124
125
+ -- | Type representing command line options for the @stack ls globals@ command.
125
126
newtype ListGlobalsOpts = ListGlobalsOpts
126
127
{ globalHints :: Bool
127
128
-- ^ Use global hints instead of relying on an actual GHC installation.
128
129
}
129
130
131
+ -- | Type representing command line options for the @stack ls dependencies@
132
+ -- command.
130
133
data ListDepsOpts = ListDepsOpts
131
134
{ format :: ! ListDepsFormat
132
135
-- ^ Format of printing dependencies
133
136
, dotOpts :: ! DotOpts
134
137
-- ^ The normal dot options.
135
138
}
136
139
140
+ -- | Type representing formats for printing dependencies.
137
141
data ListDepsFormat
138
142
= ListDepsText ListDepsFormatOpts [ListDepsTextFilter ]
139
143
| ListDepsTree ListDepsFormatOpts
140
144
| ListDepsJSON
141
145
| ListDepsConstraints
142
146
147
+ -- | Type representing command line options for the @stack ls dependencies text@
148
+ -- command and similar @cabal@, @tree@ and @json@ commands.
143
149
data ListDepsFormatOpts = ListDepsFormatOpts
144
150
{ sep :: ! Text
145
151
-- ^ Separator between the package name and details.
@@ -301,6 +307,7 @@ handleRemote lsOpts = do
301
307
where
302
308
urlInfo = " https://www.stackage.org/snapshots"
303
309
310
+ -- | Function underlying the @stack ls@ command.
304
311
lsCmd :: LsCmdOpts -> RIO Runner ()
305
312
lsCmd lsOpts =
306
313
case lsOpts. lsCmds of
You can’t perform that action at this time.
0 commit comments