Skip to content

Commit

Permalink
Test deriving Typeable for promoted data constructors with AutoDerive…
Browse files Browse the repository at this point in the history
…Typeable
  • Loading branch information
dreixel committed May 21, 2013
1 parent 7dfb38d commit e5c5252
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/deriving/should_compile/AutoDeriveTypeable.hs
@@ -1,5 +1,7 @@
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}

module AutoDeriveTypeable where

Expand All @@ -13,4 +15,5 @@ data B = B deriving Typeable
data C = C
deriving instance Typeable C

test = [typeRep [A], typeRep [B], typeRep [C]]
test = [ typeRep [A], typeRep [B], typeRep [C]
, typeRep (Proxy :: Proxy 'B), typeRep (Proxy :: Proxy 'C)]

0 comments on commit e5c5252

Please sign in to comment.