
20 Dec
2007
20 Dec
'07
6:39 a.m.
I can't really reproduce this: A simple ghci session gives the following: ----------------------------------- uwe@si:~/haskell/hxt/curr/examples/arrows/HelloWorld> ghci HelloWorld.hs GHCi, version 6.8.1: http://www.haskell.org/ghc/ :? for help Loading package base ... linking ... done. [1 of 1] Compiling Main ( HelloWorld.hs, interpreted ) Ok, modules loaded: Main. *Main> runX $ (readString [(a_validate,v_0)] "<x> </x>" >>> writeDocumentToString []) Loading ... ... ["<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<x> </x>"]
Try "<x><y> </y></x>" and a_indent writing option.