Debian Codegraph @

src-ghc/Clash/GHC/PartialEval.hs

raw
1 {-|
2 Copyright : (C) 2020, QBayLogic B.V.
3 License : BSD2 (see the file LICENSE)
4 Maintainer : QBayLogic B.V. <[email protected]>
5
6 The partial evalautor for the GHC front-end. This can be used to evaluate
7 terms in Clash core to WHNF or NF, using knowledge of GHC primitives and types.
8 For functions which can use this evaluator, see Clash.Core.PartialEval.
9 -}
10
11 module Clash.GHC.PartialEval where
12
13 import Clash.Core.PartialEval
14
15 import Clash.GHC.PartialEval.Eval
16 import Clash.GHC.PartialEval.Quote
17
18 -- | The partial evaluator for the GHC front-end. For more details about the
19 -- implementation see Clash.GHC.PartialEval.Eval for evaluation to WHNF and
20 -- Clash.GHC.PartialEval.Quote for quoting to NF.
21 --
22 ghcEvaluator :: Evaluator
23 ghcEvaluator = Evaluator eval quote
24