on 8cb86d3 help sign in
ormolu/data/examples/declaration/instance/associated-data-out.hs
20 lines 281 B history raw
1{-# LANGUAGE TypeFamilies #-}
3instance Foo Int where data Bar Int = IntBar Int Int
5instance Foo Double where
7 newtype
8 Bar
9 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