on d82d607 help sign in
ormolu/data/examples/declaration/instance/associated-data-out.hs
20 lines 274 B history raw
1{-# LANGUAGE TypeFamilies #-}
3instance Foo Int where
5 data Bar Int = IntBar Int Int
7instance Foo Double where
9 newtype Bar Double
10 = DoubleBar
11 Double
12 Double
14instance Foo [a] where
16 data Bar [a]
17 = ListBar [Bar a]
19 data Baz [a]
20 = ListBaz