summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/GivenForallLoop.hs
blob: a5f109949ce0f80f31272720b240039b32ba3a49 (plain)
1
2
3
4
5
6
7
8
{-# LANGUAGE TypeFamilies, ImpredicativeTypes #-}

module GivenForallLoop where

type family F a b

loopy :: (a ~ (forall b. F a b)) => a -> b
loopy x = x