moving setFlags to Gap.

This commit is contained in:
Kazu Yamamoto
2014-07-18 11:09:11 +09:00
parent 0ce70ae22d
commit 233f4cf05e
3 changed files with 13 additions and 5 deletions

View File

@@ -39,6 +39,7 @@ module Language.Haskell.GhcMod.Gap (
, GLMatch
, getClass
, occName
, setFlags
) where
import Control.Applicative hiding (empty)
@@ -459,3 +460,13 @@ getClass _ = Nothing
occName :: RdrName -> OccName
occName = rdrNameOcc
#endif
----------------------------------------------------------------
----------------------------------------------------------------
setFlags :: DynFlags -> DynFlags
#if __GLASGOW_HASKELL__ >= 708
setFlags df = df `gopt_unset` Opt_SpecConstr -- consume memory if -O2
#else
setFlags = id
#endif