File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import Stack.Exec
23
23
import Stack.Prelude
24
24
import Stack.Types.Runner ( Runner )
25
25
26
- -- Type representing command line options for the @stack eval@ command.
26
+ -- | Type representing command line options for the @stack eval@ command.
27
27
data EvalOpts = EvalOpts
28
28
{ arg :: ! String
29
29
, extra :: ! ExecOptsExtra
Original file line number Diff line number Diff line change @@ -102,14 +102,19 @@ instance Pretty ExecPrettyException where
102
102
103
103
instance Exception ExecPrettyException
104
104
105
- -- Type representing Stack's execution commands.
105
+ -- | Type representing Stack's execution commands.
106
106
data SpecialExecCmd
107
107
= ExecCmd String
108
+ -- ^ @stack exec@ command.
108
109
| ExecRun
110
+ -- ^ @stack run@ command.
109
111
| ExecGhc
112
+ -- ^ @stack ghc@ command.
110
113
| ExecRunGhc
114
+ -- ^ @stack runghc@ or @stack runhaskell@ command.
111
115
deriving (Eq , Show )
112
116
117
+ -- | Type representing extra Stack options for Stack's execution commands.
113
118
data ExecOptsExtra = ExecOptsExtra
114
119
{ envSettings :: ! EnvSettings
115
120
, packages :: ! [String ]
@@ -118,15 +123,15 @@ data ExecOptsExtra = ExecOptsExtra
118
123
}
119
124
deriving Show
120
125
121
- -- Type representing options for Stack's execution commands.
126
+ -- | Type representing options for Stack's execution commands.
122
127
data ExecOpts = ExecOpts
123
128
{ cmd :: ! SpecialExecCmd
124
129
, args :: ! [String ]
125
130
, extra :: ! ExecOptsExtra
126
131
}
127
132
deriving Show
128
133
129
- -- Type representing valid targets for --package option.
134
+ -- | Type representing valid targets for @ --package@ option.
130
135
data ExecTarget = ExecTarget PackageName (Maybe Version )
131
136
132
137
-- | The function underlying Stack's @exec@, @ghc@, @run@, @runghc@ and
You can’t perform that action at this time.
0 commit comments