aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Test/VeriFuzz/Types.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Test/VeriFuzz/Types.hs b/src/Test/VeriFuzz/Types.hs
index 3b17b8c..78fde7d 100644
--- a/src/Test/VeriFuzz/Types.hs
+++ b/src/Test/VeriFuzz/Types.hs
@@ -1,5 +1,6 @@
module Test.VeriFuzz.Types where
+import Data.Graph.Inductive
import System.Random
import Test.QuickCheck
@@ -8,6 +9,8 @@ data Gate = And
| Xor
deriving (Show, Eq, Enum, Bounded, Ord)
+newtype Circuit = Circuit { getCircuit :: Gr Gate () }
+
instance Random Gate where
randomR (a, b) g =
case randomR (fromEnum a, fromEnum b) g of