[Haskell-cafe] [HXT] Simple question

Miguel Mitrofanov miguelimo38 at yandex.ru
Thu Dec 20 06:39:58 EST 2007


> I can't really reproduce this:
> A simple ghci session gives the following:
> -----------------------------------
> uwe at 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.


More information about the Haskell-Cafe mailing list