summaryrefslogtreecommitdiff
path: root/testsuite/tests/stranal/should_compile/T8467.hs
blob: 86db5e30d8b213b883d36140345ceb02cd2f0d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
module T8467 where

newtype Void = Void Void

data Decision a = Disproved (a -> Void)

bar :: Int -> Void
bar = \_ -> undefined

foo :: () -> Decision Int
foo _ = Disproved (\_ -> undefined)