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

20 lines
330 B
Haskell

{-# LANGUAGE TypeFamilies #-}
instance Foo Int where data Bar Int = IntBar Int Int
instance Foo Double where
newtype
Bar
Double
=
DoubleBar
Double
Double
instance Foo [a]
where
data Bar [a] =
ListBar [Bar a]
data Baz [a] =
ListBaz