ghc-mod/Language/Haskell/GhcMod/Flag.hs
2013-05-20 14:28:56 +09:00

15 lines
463 B
Haskell

{-# LANGUAGE CPP #-}
module Language.Haskell.GhcMod.Flag where
import qualified Language.Haskell.GhcMod.Gap as Gap
import Language.Haskell.GhcMod.Types
-- | Listing GHC flags. (e.g -fno-warn-orphans)
listFlags :: Options -> IO String
listFlags opt = return $ convert opt [ "-f" ++ prefix ++ option
| option <- Gap.fOptions
, prefix <- ["","no-"]
]