aboutsummaryrefslogtreecommitdiffstats
path: root/src/Verismith/Tool/Internal.hs
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2020-05-11 18:29:06 +0100
committerYann Herklotz <git@yannherklotz.com>2020-05-11 18:29:06 +0100
commit805f67c07cc15d784078b00a84f4055f84016cec (patch)
tree15c93eb5102e3813515d41204deb3f86f78f1994 /src/Verismith/Tool/Internal.hs
parent54bb059ab6955f58f4a4b95cdd080775a56bc793 (diff)
downloadverismith-805f67c07cc15d784078b00a84f4055f84016cec.tar.gz
verismith-805f67c07cc15d784078b00a84f4055f84016cec.zip
Fix types with annotations
Diffstat (limited to 'src/Verismith/Tool/Internal.hs')
-rw-r--r--src/Verismith/Tool/Internal.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Verismith/Tool/Internal.hs b/src/Verismith/Tool/Internal.hs
index 77ec4c9..f462c74 100644
--- a/src/Verismith/Tool/Internal.hs
+++ b/src/Verismith/Tool/Internal.hs
@@ -65,9 +65,10 @@ class Tool a where
-- | Simulation type class.
class Tool a => Simulator a where
- runSim :: a -- ^ Simulator instance
- -> SourceInfo ann -- ^ Run information
- -> [ByteString] -- ^ Inputs to simulate
+ runSim :: Show ann
+ => a -- ^ Simulator instance
+ -> SourceInfo ann -- ^ Run information
+ -> [ByteString] -- ^ Inputs to simulate
-> ResultSh ByteString -- ^ Returns the value of the hash at the output of the testbench.
runSimWithFile :: a
-> FilePath
@@ -99,7 +100,8 @@ instance Monoid Failed where
-- | Synthesiser type class.
class Tool a => Synthesiser a where
- runSynth :: a -- ^ Synthesiser tool instance
+ runSynth :: Show ann
+ => a -- ^ Synthesiser tool instance
-> SourceInfo ann -- ^ Run information
-> ResultSh () -- ^ does not return any values
synthOutput :: a -> FilePath