Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tests/Strictness: Use Text.Show.Functions
  • Loading branch information
sjakobi committed Apr 27, 2022
commit ea051bc13373814be2a7961791bee63099965282
8 changes: 1 addition & 7 deletions tests/Strictness.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

module Strictness (tests) where
Expand All @@ -16,6 +15,7 @@ import Test.QuickCheck.Function
import Test.QuickCheck.Poly (A)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)
import Text.Show.Functions ()
import Util.Key (Key)

import qualified Data.HashMap.Strict as HM
Expand All @@ -24,12 +24,6 @@ instance (Arbitrary k, Arbitrary v, Eq k, Hashable k) =>
Arbitrary (HashMap k v) where
arbitrary = HM.fromList `fmap` arbitrary

instance Show (Int -> Int) where
show _ = "<function>"

instance Show (Int -> Int -> Int) where
show _ = "<function>"

------------------------------------------------------------------------
-- * Properties

Expand Down