blob: 5a9d34e8a0e5f807482659db6839ca49f9e6f72a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE UnliftedNewtypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
module UnliftedNewtypesLevityBinder where
import GHC.Types (RuntimeRep,TYPE,Coercible)
newtype Ident :: forall (r :: RuntimeRep). TYPE r -> TYPE r where
IdentC :: forall (r :: RuntimeRep) (a :: TYPE r). a -> Ident a
bad :: forall (r :: RuntimeRep) (a :: TYPE r). a -> Ident a
bad = IdentC
|