summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T15883e.hs
blob: bb1dcacf924a6a9ed42dec8105d93cd6b0128133 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UnliftedNewtypes #-}

module T15883e where

import GHC.Exts
import Data.Data (Data)

newtype Foo rep = MkFoo (forall (a :: TYPE rep). a)
deriving stock instance Data (Foo LiftedRep)