@@ -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
@@ -43,13 +44,15 @@ module Clash.Magic
43
44
, clashCompileError
44
45
) where
45
46
47
+ import Clash.Annotations.Primitive (Primitive (.. ), hasBlackBox )
48
+ import Clash.NamedTypes ((:::) )
49
+ import Clash.Promoted.Symbol (SSymbol )
50
+ import Clash.XException (NFDataX )
46
51
import Data.String.Interpolate (__i )
52
+ import GHC.Generics (Generic )
47
53
import GHC.Magic (noinline )
48
54
import GHC.Stack (HasCallStack , withFrozenCallStack )
49
- import Clash.NamedTypes ((:::) )
50
55
import GHC.TypeLits (Nat ,Symbol )
51
- import Clash.Promoted.Symbol (SSymbol )
52
- import Clash.Annotations.Primitive (Primitive (.. ), hasBlackBox )
53
56
54
57
-- | Prefix instance and register names with the given 'Symbol'
55
58
prefixName
@@ -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