moving setFlags to Gap.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user