Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Mutable collection of gui objects    (wxHaskell)
      (Henk-Jan van Tuyl)
   2. Re:  Is there an aeson-like XML serialization     library?
      (Thomas Koster)


----------------------------------------------------------------------

Message: 1
Date: Tue, 31 Mar 2015 09:52:31 +0200
From: "Henk-Jan van Tuyl" <[email protected]>
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <[email protected]>,
        "Jeffrey Brown" <[email protected]>
Subject: Re: [Haskell-beginners] Mutable collection of gui objects
        (wxHaskell)
Message-ID: <op.xwcqttrxpz0j5l@alquantor>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
        delsp=yes

On Tue, 31 Mar 2015 04:14:35 +0200, Jeffrey Brown  
<[email protected]> wrote:

> On Github, Jeremy O'Donoghue provides wx example code. From his  
> collection

Note, that this repository is not actively maintained anymore, the  
official repository is at
   https://github.com/wxHaskell/wxHaskell

Regards,
Henk-Jan van Tuyl


-- 
Folding@home
What if you could share your unused computer power to help find a cure? In  
just 5 minutes you can join the world's biggest networked computer and get  
us closer sooner. Watch the video.
http://folding.stanford.edu/


http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--


------------------------------

Message: 2
Date: Tue, 31 Mar 2015 20:54:40 +1100
From: Thomas Koster <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Is there an aeson-like XML
        serialization   library?
Message-ID:
        <cag1wh7bt4aazgcodh_k4szt34dq5qzdfcsdy8b2-76p2qw9...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Michael,

On 31 March 2015 at 14:26, Thomas Koster <[email protected]> wrote:

> I want to write a simple XML web service in Haskell that services a .NET
> WCF client, but am struggling with choosing the right XML library.
> ...
> I need the library to understand XML namespaces and the mandatory
> predefined entities, but I do not need any other extensions like XML
> Schemas, XPath or XSLT. Preferably, "xmlns" attributes should be handled
> specially and namespace prefixes resolved by the parser. "xmlns" attributes
> should be placed automatically by the renderer (I don't care what prefixes
> it chooses). I do not want to have to keep track of seen namespace prefixes
> while I am traversing the document, or to manually place "xmlns" attributes
> on elements for rendering.


On 31 March 2015 at 16:39, Michael Snoyman <[email protected]> wrote:

> It doesn't have the typeclass stuff built in, but xml-conduit has proper
> support for XML namespaces.


That's OK. I can create the type classes myself.

class ToElement a where
  toElement :: a -> Element

class FromElement a where
  parseElement :: Element -> Either String a

The important thing is that namespaces are understood so that I am able
create instances that compose, e.g. (off the top of my head)

data SoapEnvelope h b = SoapEnvelope
  {
    soapEnvelopeHeaders :: [h],
    soapEnvelopeBody :: b
  }

instance (FromElement h, FromElement b) => FromElement (SoapEnvelope h b)
where
  parseElement e = SoapEnvelope <$> (...headers...) <*> (...body...)

Thanks,
--
Thomas Koster
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150331/06cc5255/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 81, Issue 76
*****************************************

Reply via email to