packages feed

fourmolu-0.0.6.0: data/examples/declaration/instance/associated-data-out.hs

{-# 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