@@ -17,6 +17,7 @@ Refer to "Clash.Annotations.TopEntity" for controlling naming of entities
17
17
-}
18
18
19
19
{-# LANGUAGE CPP #-}
20
+ {-# LANGUAGE DeriveAnyClass #-}
20
21
{-# LANGUAGE QuasiQuotes #-}
21
22
{-# LANGUAGE TemplateHaskellQuotes #-}
22
23
@@ -46,7 +47,9 @@ module Clash.Magic
46
47
import Clash.Annotations.Primitive (Primitive (.. ), hasBlackBox )
47
48
import Clash.NamedTypes ((:::) )
48
49
import Clash.Promoted.Symbol (SSymbol )
50
+ import Clash.XException (NFDataX )
49
51
import Data.String.Interpolate (__i )
52
+ import GHC.Generics (Generic )
50
53
import GHC.Magic (noinline )
51
54
import GHC.Stack (HasCallStack , withFrozenCallStack )
52
55
import GHC.TypeLits (Nat ,Symbol )
@@ -272,7 +275,7 @@ clashSimulation = noinline True
272
275
-- * Co-simulation state or meta-data
273
276
-- * etc.
274
277
data SimOnly a = SimOnly a
275
- deriving (Eq , Ord , Foldable , Traversable )
278
+ deriving (Generic , Eq , Ord , Foldable , Traversable , NFDataX )
276
279
{-# ANN SimOnly hasBlackBox #-}
277
280
278
281
instance Functor SimOnly where
0 commit comments