forked from commercialhaskell/stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHaddockParser.hs
More file actions
20 lines (18 loc) · 771 Bytes
/
HaddockParser.hs
File metadata and controls
20 lines (18 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE NoImplicitPrelude #-}
module Stack.Options.HaddockParser where
import Options.Applicative
import Options.Applicative.Args
import Stack.Options.Utils
import Stack.Prelude
import Stack.Types.Config
-- | Parser for haddock arguments.
haddockOptsParser :: Bool -> Parser HaddockOptsMonoid
haddockOptsParser hide0 =
HaddockOptsMonoid <$> fmap (fromMaybe [])
(optional
(argsOption
(long "haddock-arguments" <>
metavar "HADDOCK_ARGS" <>
help "Arguments passed to the haddock program" <>
hide)))
where hide = hideMods hide0