1
1
mirror of https://github.com/google/ormolu.git synced 2024-12-13 03:34:12 +03:00
ormolu/data/examples/declaration/deriving/singleline.hs

13 lines
356 B
Haskell

deriving instance Eq Foo
deriving stock instance Show Foo
deriving anyclass instance ToJSON Foo
deriving newtype instance Data Foo
deriving instance {-# OVERLAPPABLE #-} Ord Foo
deriving instance {-# OVERLAPPING #-} Num Foo
deriving instance {-# OVERLAPS #-} Read Foo
deriving instance {-# INCOHERENT #-} Show Foo
deriving via Int instance Triple A B C