Given the following:
test :: (Int -> Int) -> Int -> Bool
test _ _ = True
After compiling the source, I try to run quickCheck test
:
> quickCheck test
<interactive>:27:1:
No instance for (Show (Int -> Int))
arising from a use of ‘quickCheck’
In the expression: quickCheck test
In an equation for ‘it’: it = quickCheck test
Looking at this Show instance for functions, it appears to me that no such instance exists.
How can I run quickCheck test
, i.e. get around or address the missing Show
instance for Int -> Int
?