GenericPretty-0.1.2: TestSuite/SimpleTest.hs
{-# LANGUAGE DeriveGeneric #-}
import Text.PrettyPrint.GenericPretty
data Tree a = Leaf a | Node (Tree a) (Tree a) deriving (Generic)
instance (Out a) => Out (Tree a) where
out = genOut
tree1 :: Tree Int
tree1 = Node (Node (Leaf 333333) (Leaf (-555555)))(Node (Node (Node (Leaf 888888)
(Leaf 57575757))(Leaf (-14141414)))(Leaf 7777777))
main = prettyP 30 1 tree1