Mercurial > hg > Members > toma > Jungle-haskell
diff Main.hs @ 3:090bdde20e9f
add Main.hs
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 26 Mar 2013 18:28:54 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Main.hs Tue Mar 26 18:28:54 2013 +0900 @@ -0,0 +1,16 @@ +module Main where +import Jungle +import qualified Data.ByteString.Char8 as C + + +x = createTree createJungle "new_tree" +tree = getTreeByName x "new_tree" +new_tree = addNewChildAt tree [] 0 Empty +new_tree2 = putAttribute tree [] "key" (C.pack "value") + + +main = do print $ createJungle + print x + print $ getTreeByName x "new_tree" + print new_tree + print new_tree2