summaryrefslogtreecommitdiff
path: root/testsuite/tests/deriving/should_fail/drvfail015.hs
blob: 8f1235c0b8510a4da5299bff23db3de7911e493a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{-# LANGUAGE Haskell2010 #-}
{-# OPTIONS_GHC -XStandaloneDeriving #-}

module ShouldFail where

import System.IO( Handle )


-- T is a synonym
type T = Int
deriving instance Eq T

-- Handle is abstract
deriving instance Eq Handle