[Haskell-cafe] Processing a file with HaXml without invoking processXmlWith?

2005-06-02 Thread Echo Nolan
Hi all, I've an application which needs to process some XML, but the only way I can see in the Haddock-generated documentation is using the processXmlWith wrapper, which reads it's input and output arguments from the command line. I'd prefer a pure function which took a Document or a String and ret

[Haskell-cafe] LC online references

2005-06-02 Thread Matthew Roberts
Hi, I hope I am not too OT here. I am in the process to coming to terms with various calculi based on the lambda calculus. I end up returning to LC books all the time to put things in context. However, I have taken to living out of my laptop and certainly can't carry around the laptop, the

Re: [Haskell-cafe] Space questions about intern and sets

2005-06-02 Thread Gracjan Polak
Marcin 'Qrczak' Kowalczyk wrote: > Gracjan Polak <[EMAIL PROTECTED]> writes: > > >>intern :: Ord a => a -> a >>intern x = unsafePerformIO $ internIO x >> >>iorefset :: Ord a => IORef(Map.Map a a) >>iorefset = unsafePerformIO $ do >> newIORef $ Map.empty > > > It will not work because you can't

[Haskell-cafe] Re: CGI module almost useless

2005-06-02 Thread Ferenc Wagner
John Goerzen <[EMAIL PROTECTED]> writes: > On Wed, Jun 01, 2005 at 10:54:54AM -0700, Jeremy Shaw wrote: > >> I have done all of those things in WASH. [...] > > From what I can tell, there are two problems with WASH: > > 1) Everything must be done the WASH way > > 2) WASH is mostly broken with GHC

RE: Re[2]: [Haskell-cafe] ghc 6.4 import problem

2005-06-02 Thread Simon Marlow
On 01 June 2005 07:24, Bulat Ziganshin wrote: > Hello Fergus, > > Tuesday, May 31, 2005, 10:24:41 PM, you wrote: > >>> import Data.Set hiding (map) >>> import qualified Data.Set as Set >>> >>> will do fine. > >> That code only compiles with ghc 6.4, and won't compile with ghc 6.2: >> you'll ge

Re: [Haskell-cafe] LC online references

2005-06-02 Thread Bulat Ziganshin
Hello Matthew, Thursday, June 02, 2005, 12:23:37 PM, you wrote: MR> However, I have taken to living out of my laptop and certainly can't MR> carry around the laptop, the book I am reading plus Barendregt's book MR> (plus my phone, plus ). Besides, I can't afford to buy any books MR> and th

Re: [Haskell-cafe] Processing a file with HaXml without invoking processXmlWith?

2005-06-02 Thread Graham Klyne
It certainly *is* possible to process XML directly. I have a test module for a modified version of HaXml that do this... maybe this helps? The text program is: http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/test/TestXml.hs with supporting data files in the same directory: http:/

[Haskell-cafe] HaXml (was: Processing a file with HaXml ...)

2005-06-02 Thread Peter Simons
Graham Klyne writes: > http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/ > This code is all heavily refactored from the original > HaXml for improved XML entity handling, namespace, > xml:lang and xml:base support [...]. Is there any chance of reuniting the two HaXml versions into

Re[4]: [Haskell-cafe] ghc 6.4 import problem

2005-06-02 Thread Bulat Ziganshin
Hello Simon, Thursday, June 02, 2005, 12:26:48 PM, you wrote: SM> You mean allowing SM> import M hiding (x) SM> even if x is not exported by M? Or making it a warning? yes. i think that warning will be enough - it will compile silently with new library versions and give warning, but still c

Re: [Haskell-cafe] HaXml (was: Processing a file with HaXml ...)

2005-06-02 Thread Graham Klyne
At 14:38 02/06/05 +0200, Peter Simons wrote: Graham Klyne writes: > http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/ > This code is all heavily refactored from the original > HaXml for improved XML entity handling, namespace, > xml:lang and xml:base support [...]. Is there any

Re: [Haskell-cafe] Space questions about intern and sets

2005-06-02 Thread Scott Turner
On 2005 June 02 Thursday 04:38, Gracjan Polak wrote: > >>iorefset :: Ord a => IORef(Map.Map a a) > >>iorefset = unsafePerformIO $ do > >> newIORef $ Map.empty > I could have as many dictionaries as there are types. The problem is I > get one dictionary for each object which defeats the idea

[Haskell-cafe] Re: HaXml

2005-06-02 Thread Henning Thielemann
On 2 Jun 2005, Peter Simons wrote: > Graham Klyne writes: > > > http://www.ninebynine.org/Software/HaskellUtils/HaXml-1.12/ > > > This code is all heavily refactored from the original > > HaXml for improved XML entity handling, namespace, > > xml:lang and xml:base support [...]. > > Is there

[Haskell-cafe] About ($)

2005-06-02 Thread Frank-Andre Riess
Hello there, name's Frank-Andre Riess. Nice to meet you m(_ _)m So, well, my first question on this list is admittedly somewhat simple, but I managed to delay it long enough and now I think I should ask about it: Does ($) have any relevance at all except for being a somewhat handier version of pa

Re: [Haskell-cafe] About ($)

2005-06-02 Thread Mark Carroll
On Thu, 2 Jun 2005, Frank-Andre Riess wrote: > name's Frank-Andre Riess. Nice to meet you m(_ _)m Hello! > So, well, my first question on this list is admittedly somewhat simple, but I > managed to delay it long enough and now I think I should ask about it: Does > ($) have any relevance at all e

Re: [Haskell-cafe] About ($)

2005-06-02 Thread Cale Gibbard
(oops, wanted to reply to the list, sent this directly the first time) It's not all that much, but there are some uses outside of getting rid of parentheses. What do you want for something defined as "f $ x = f x"? :) It's just the identity function restricted to functions. You might occasionally

Re: [Haskell-cafe] About ($)

2005-06-02 Thread robert dockins
Hello there, name's Frank-Andre Riess. Nice to meet you m(_ _)m Welcome. So, well, my first question on this list is admittedly somewhat simple, but I managed to delay it long enough and now I think I should ask about it: Does ($) have any relevance at all except for being a somewhat handier