diff options
author | Yann Herklotz <git@yannherklotz.com> | 2020-05-11 18:29:06 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2020-05-11 18:29:06 +0100 |
commit | 805f67c07cc15d784078b00a84f4055f84016cec (patch) | |
tree | 15c93eb5102e3813515d41204deb3f86f78f1994 /src/Verismith/Tool/Internal.hs | |
parent | 54bb059ab6955f58f4a4b95cdd080775a56bc793 (diff) | |
download | verismith-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.hs | 10 |
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 |