packages feed

hls-tactics-plugin-1.1.0.0: test/golden/GoldenFmapTree.hs.expected

data Tree a = Leaf a | Branch (Tree a) (Tree a)

instance Functor Tree where
   fmap fab (Leaf a) = Leaf (fab a)
   fmap fab (Branch ta2 ta3) = Branch (fmap fab ta2) (fmap fab ta3)