Commit 210a2e12 authored by Simon Peyton Jones's avatar Simon Peyton Jones
Browse files

Test Trac #12163

parent ce97b729
{-# LANGUAGE DeriveFunctor #-}
module T12163 where
data T a b where
Mk :: Int -> b -> T Int b
deriving (Functor)
T12163.hs:8:16: error:
• Can't make a derived instance of ‘Functor (T a)’:
Constructor ‘Mk’ is a GADT
Possible fix: use a standalone deriving declaration instead
• In the data declaration for ‘T’
......@@ -58,4 +58,4 @@ test('T9687', normal, compile_fail, [''])
test('T8984', normal, compile_fail, [''])
test('T9968a', normal, compile_fail, [''])
test('T12163', normal, compile_fail, [''])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment