wは簡単なテストに対してQuickCheckを実行:次を考える/機能
test :: (Int -> Int) -> Int -> Bool
test _ _ = True
ソースをコンパイルした後、私は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
このShow instance for functionsを見ると、それはように私には見えますそのようなインスタンスは存在しません。
quickCheck test
を実行すると、Int -> Int
のShow
インスタンスが回避されますか?