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/Yosys.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/VeriFuzz/Sim/Yosys.hs') diff --git a/src/VeriFuzz/Sim/Yosys.hs b/src/VeriFuzz/Sim/Yosys.hs index b7fae6b..c432afe 100644 --- a/src/VeriFuzz/Sim/Yosys.hs +++ b/src/VeriFuzz/Sim/Yosys.hs @@ -20,6 +20,7 @@ module VeriFuzz.Sim.Yosys ) where +import Control.DeepSeq (NFData, rnf, rwhnf) import Control.Lens import Data.Text (Text, unpack) import Prelude hiding (FilePath) @@ -49,6 +50,9 @@ instance Synthesiser Yosys where synthOutput = yosysOutput setSynthOutput (Yosys a b _) = Yosys a b +instance NFData Yosys where + rnf = rwhnf + defaultYosys :: Yosys defaultYosys = Yosys Nothing "yosys" "syn_yosys.v" -- cgit