diff options
Diffstat (limited to 'testsuite/tests/deriving/should_fail/drvfail008.hs')
-rw-r--r-- | testsuite/tests/deriving/should_fail/drvfail008.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_fail/drvfail008.hs b/testsuite/tests/deriving/should_fail/drvfail008.hs new file mode 100644 index 0000000000..af8628b4d5 --- /dev/null +++ b/testsuite/tests/deriving/should_fail/drvfail008.hs @@ -0,0 +1,14 @@ +-- Should fail without GeneralizedNewtypeDeriving +-- Succeeds with GeneralizedNewtypeDeriving + +module ShouldFail where + +import Control.Monad.State + +data S = S Int + +newtype M a = M (StateT S IO a) deriving( Monad ) + + + + |