on 656d036 help sign in
ormolu/data/examples/declaration/instance/associated-data-out.hs
15 lines 269 B history raw
1{-# LANGUAGE TypeFamilies #-}
2instance Foo Int where
3 data Bar Int = IntBar Int Int
5instance Foo Double where
6 newtype Bar Double
7 = DoubleBar
8 Double
9 Double
11instance Foo [a] where
12 data Bar [a]
13 = ListBar [Bar a]
14 data Baz [a]
15 = ListBaz