2013-05-17 01:00:01 +00:00
|
|
|
module Language.Haskell.GhcMod.Flag where
|
2012-01-23 04:18:40 +00:00
|
|
|
|
2013-05-17 01:00:01 +00:00
|
|
|
import qualified Language.Haskell.GhcMod.Gap as Gap
|
|
|
|
import Language.Haskell.GhcMod.Types
|
2012-01-23 04:18:40 +00:00
|
|
|
|
2013-05-20 05:28:56 +00:00
|
|
|
-- | Listing GHC flags. (e.g -fno-warn-orphans)
|
|
|
|
|
2012-01-23 04:18:40 +00:00
|
|
|
listFlags :: Options -> IO String
|
2012-02-14 07:09:53 +00:00
|
|
|
listFlags opt = return $ convert opt [ "-f" ++ prefix ++ option
|
|
|
|
| option <- Gap.fOptions
|
|
|
|
, prefix <- ["","no-"]
|
|
|
|
]
|