repl.it
@Pzixel/

AstonishingMisguidedInformationtechnology

Haskell

No description

fork
loading
Files
  • main.hs
main.hs
1
2
3
4
5
6
import Data.Tree

main :: IO ()
main = do
    let tree = Node 1 [Node 2 [], Node 3 [Node 4 [], Node 5 []]]
    putStrLn . drawTree . fmap show $ tree
GHCi, version 8.6.5