File: BadTelescope4.hs

package info (click to toggle)
haskell-ghc-exactprint 1.7.1.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,044 kB
  • sloc: haskell: 32,076; makefile: 7
file content (13 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE ExistentialQuantification, TypeInType #-}
module BadTelescope4 where

import Data.Proxy
import Data.Kind

data SameKind :: k -> k -> *

data Bad a (c :: Proxy b) (d :: Proxy a) (x :: SameKind b d)

data Borked a (b :: k) = forall (c :: k). B (Proxy c)
  -- this last one is OK. But there was a bug involving renaming
  -- that failed here, so the test case remains.