gc
This commit is contained in:
crumbtoo
2023-12-07 15:07:54 -07:00
parent c48a4ef4c0
commit a00405ebd4
3 changed files with 61 additions and 10 deletions

View File

@@ -96,10 +96,11 @@ evalRLPCIO o m = do
data RLPCOptions = RLPCOptions
{ _rlpcLogFile :: Maybe FilePath
, _rlpcDebugOpts :: DebugOpts
, _rlpcEvaluator :: Evaluator
, _rlpcInputFiles :: [FilePath]
{ _rlpcLogFile :: Maybe FilePath
, _rlpcDebugOpts :: DebugOpts
, _rlpcEvaluator :: Evaluator
, _rlpcHeapTrigger :: Int
, _rlpcInputFiles :: [FilePath]
}
deriving Show
@@ -128,6 +129,7 @@ instance Default RLPCOptions where
{ _rlpcLogFile = Nothing
, _rlpcDebugOpts = mempty
, _rlpcEvaluator = EvaluatorGM
, _rlpcHeapTrigger = 200
, _rlpcInputFiles = []
}
@@ -138,9 +140,6 @@ data DebugFlag = DDumpEval
| DDumpAST
deriving (Show, Eq, Generic)
-- deriving (Hashable)
-- via Generically DebugFlag
instance Hashable DebugFlag
makeLenses ''RLPCOptions