Commit d036e96a authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add a test for trac #2449

parent 38dee26c
TOP=../../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
drvfail016:
$(RM) -f drvfail016.hi-boot drvfail016.o-boot
$(TEST_HC) -XGeneralizedNewtypeDeriving -c drvfail016.hs-boot; echo $$?
......@@ -14,4 +14,8 @@ test('drvfail012', normal, compile_fail, [''])
test('drvfail013', normal, compile_fail, [''])
test('drvfail014', normal, compile_fail, [''])
test('drvfail015', normal, compile_fail, [''])
test('drvfail016',
extra_clean(['drvfail016.hi-boot', 'drvfail016.o-boot']),
run_command,
['$MAKE --no-print-directory -s drvfail016'])
test('T2394', normal, compile_fail, [''])
-- trac #2449
module A where
data D
deriving Show
drvfail016.hs-boot:6:0:
Deriving not permitted in hs-boot file
Use an instance declaration instead
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