* 'cλash' of http://git.stderr.nl/matthijs/projects/master-project:
Generate proper VHDL for top level bindings with no arguments.
Use is_local_var for limiting appsimpl and letsimpl.
Add newline at the end of file.
Add is_local_var predicate.
Santize comment dashes position.
Normalize all used global binders.
-- | Evaluate a core Type representing type level int from the tfp
-- library to a real int.
-eval_tfp_int :: Type.Type -> Int
-eval_tfp_int ty =
+eval_tfp_int :: HscTypes.HscEnv -> Type.Type -> Int
+eval_tfp_int env ty =
unsafeRunGhc $ do
+ GHC.setSession env
-- Automatically import modules for any fully qualified identifiers
setDynFlag DynFlags.Opt_ImplicitImportQualified
getLiterals app@(CoreSyn.App _ _) = literals
where
(CoreSyn.Var f, args) = CoreSyn.collectArgs app
- literals = filter (is_lit) args
+ literals = filter (is_lit) args