From 110d1392882cff9618997acad85af78017688c86 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 9 May 2019 14:36:28 +0100 Subject: Add NFData to force evaluation of config file --- src/VeriFuzz/Sim/XST.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/VeriFuzz/Sim/XST.hs') diff --git a/src/VeriFuzz/Sim/XST.hs b/src/VeriFuzz/Sim/XST.hs index e1e8243..11be094 100644 --- a/src/VeriFuzz/Sim/XST.hs +++ b/src/VeriFuzz/Sim/XST.hs @@ -18,6 +18,7 @@ module VeriFuzz.Sim.XST ) where +import Control.DeepSeq (NFData, rnf, rwhnf) import Data.Text (Text, unpack) import Prelude hiding (FilePath) import Shelly @@ -45,6 +46,9 @@ instance Synthesiser XST where synthOutput = xstOutput setSynthOutput (XST a b _) = XST a b +instance NFData XST where + rnf = rwhnf + defaultXST :: XST defaultXST = XST Nothing "xst" "syn_xst.v" -- cgit