Text.XML.HaXML.HaskellToXml DRIFT example

Does someone have an example of how to use DRIFT to convert a Haskell type into XML? The documentation appears rather sparse... -Alex- ______________________________________________________________ S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com

Oops, I just found the examples directory. So the next question is: Is there a way to use DRift directly from GHCI? If I have to hmake regularly, that will get annoying fast. -Alex- On Wed, 27 Oct 2004, S. Alexander Jacobson wrote:
Does someone have an example of how to use DRIFT to convert a Haskell type into XML?
The documentation appears rather sparse...
-Alex-
______________________________________________________________ S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
______________________________________________________________ S. Alexander Jacobson tel:917-770-6565 http://alexjacobson.com

"S. Alexander Jacobson"
Oops, I just found the examples directory. So the next question is: Is there a way to use DRift directly from GHCI? If I have to hmake regularly, that will get annoying fast.
If you're using emacs, there's a handy 'one-button test' setup documented here: http://www.haskell.org/hawiki/HaskellMode I've been thinking about an editor-agnostic zero-button test setup, but I don't have the details worked out yet. -- Shae Matijs Erisson - Programmer - http://www.ScannedInAvian.org/ "I will, as we say in rock 'n' roll, run until the wheels come off, because I love what I do." -- David Crosby

On Wed, Oct 27, 2004 at 03:43:30PM -0400, S. Alexander Jacobson wrote:
Oops, I just found the examples directory. So the next question is: Is there a way to use DRift directly from GHCI? If I have to hmake regularly, that will get annoying fast.
Drift now comes with a script called 'drift-ghc' which is used to run drift directly from GHC. just pass ghc '-pgmF drift-ghc -F' and it will do the right thing, filtering files that contain drift directives. John -- John Meacham - ⑆repetae.net⑆john⑈
participants (3)
-
John Meacham
-
S. Alexander Jacobson
-
Shae Matijs Erisson