[Haskell] xml-rpc in hugs
Robert Dockins
robdockins at fastmail.fm
Fri Sep 8 08:41:16 EDT 2006
On Sep 8, 2006, at 6:30 AM, David Tolpin wrote:
> Hi,
>
> I'm trying to use xmlrpc module with hugs. The problems are not
> really related to this particulare module, so the question is here.
>
>
> A module generated from the DTD for XML-RPC by HaXml contains
> import in the following form:
>
> import Prelude (all, maybe, (++))
>
> or something like that to avoid name conflicts with types of the
> same name defined in the module. In Hugs it leads to (:) not being
> imported into the module. Is there a way to import just (:) from
> the Prelude?
This one is tricky due to the fact that (:) is very special. I think
various Haskell implementations differ on exactly how this is
handled. I don't know enough about Hugs to say for sure.
> Is there a way to import all but some symbols from some module?
Yes. You want the 'hiding' keyword, eg,
import Prelude hiding (foo, bar, baz)
> Is (:) a data constructor?
Yes.
> David
Rob Dockins
Speak softly and drive a Sherman tank.
Laugh hard; it's a long way to the bank.
-- TMBG
More information about the Haskell
mailing list