summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-regress/deriving/should_fail/drvfail-functor1.hs
blob: 94ebd925b8bbdc93238efdaccd26b72d68fa2db2 (plain)
1
2
3
4
5
6
module ShouldFail where

-- Derive Functor without a DeriveFunctor language pragma

data List a = Nil | Cons a (List a)
    deriving Functor