Biorąc pod uwagę następujące elementy:Running QuickCheck przeciwko Prosty test w/Funkcja
test :: (Int -> Int) -> Int -> Bool
test _ _ = True
Po kompilacji źródła, próbuję uruchomić 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
Patrząc na ten Show instance for functions, wydaje mi się, że nie istnieje takie wystąpienie.
Jak mogę uruchomić quickCheck test
, tzn. Obejść lub rozwiązać brakującą instancję Show
dla Int -> Int
?