diff options
Diffstat (limited to 'spec/test/Thermoprint')
| -rw-r--r-- | spec/test/Thermoprint/PrintoutSpec.hs | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/test/Thermoprint/PrintoutSpec.hs b/spec/test/Thermoprint/PrintoutSpec.hs index b92d76a..7ba3656 100644 --- a/spec/test/Thermoprint/PrintoutSpec.hs +++ b/spec/test/Thermoprint/PrintoutSpec.hs  | |||
| @@ -9,8 +9,6 @@ import Thermoprint.Printout | |||
| 9 | import Data.Aeson (fromJSON, ToJSON(..), Result(..)) | 9 | import Data.Aeson (fromJSON, ToJSON(..), Result(..)) | 
| 10 | import Data.Function (on) | 10 | import Data.Function (on) | 
| 11 | 11 | ||
| 12 | import Control.DeepSeq (($!!), force) | ||
| 13 | |||
| 14 | -- Equality via cotext on Block | 12 | -- Equality via cotext on Block | 
| 15 | instance Eq Block where | 13 | instance Eq Block where | 
| 16 | (==) = (==) `on` cotext | 14 | (==) = (==) `on` cotext | 
| @@ -20,7 +18,7 @@ deriving instance Eq Chunk | |||
| 20 | spec :: Spec | 18 | spec :: Spec | 
| 21 | spec = do | 19 | spec = do | 
| 22 | prop "prop_text" prop_text | 20 | prop "prop_text" prop_text | 
| 23 | prop "json" prop_json | 21 | parallel $ prop "json" prop_json | 
| 24 | where | 22 | where | 
| 25 | prop_json :: Printout -> Bool | 23 | prop_json :: Printout -> Bool | 
| 26 | prop_json p = force $ (== Success p) . fromJSON . toJSON $!! p | 24 | prop_json p = (== Success p) . fromJSON . toJSON $ p | 
