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