1{-# OPTIONS_GHC -fdefer-type-errors #-}
2{-# OPTIONS_GHC -Wno-deferred-type-errors #-}
4-- | Test that infinite types has no Arbitrary instance
6module NoTypecheckTest where
9import GHC.Generics (Generic)
11import Test.QuickCheck.Arbitrary.Generic
13-- | Recursive infinite type which can not have valid Arbitrary instance
15 deriving (Eq, Show, Generic)
17-- | Instance which must not compile, but we are using deferred type errors
18instance Arbitrary R where
19 arbitrary = genericArbitrary
20 shrink = genericShrink
23unit_mustFail = failGeneration @R
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list