Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

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


Today's Topics:

   1. Re:  Laziness and XML parsing (Sean Hess)
   2. Re:  Noisy Linking (Sean Hess)
   3. Re:  Noisy Linking (Brandon Allbery)
   4. Re:  Noisy Linking (Daniel Fischer)
   5.  Help : foldl skipping one value in list (Lev Broido)


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

Message: 1
Date: Tue, 8 Nov 2011 08:28:07 -0700
From: Sean Hess <seanh...@gmail.com>
Subject: Re: [Haskell-beginners] Laziness and XML parsing
To: Michael Snoyman <mich...@snoyman.com>
Cc: beginners@haskell.org
Message-ID: <92a5644b-b7e8-4136-8888-18307c214...@gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thanks all for your help so far. Using xml-enumerator, is there any way to 
parse the following xml, and ignore the people tag? In other words, can I parse 
it by only providing an Iteratee for Person, no matter where a <person> tag 
appears nested within a document?
>  <?xml version="1.0" encoding="utf-8"?>
>  <people>
>      <person age="25">Michael</person>
>      <person age="2">Eliezer</person>
>  </people>
  



On Nov 8, 2011, at 7:33 AM, Michael Snoyman wrote:

> Thanks for the heads-up, it's just a few minor tweaks in the 0.3->0.4
> transition. I'll update later, and add a link to the blog post, and
> release a new version to Hackage.
> 
> On Tue, Nov 8, 2011 at 6:03 AM, Sean Hess <seanh...@gmail.com> wrote:
>> Thanks so much to both of you that sent that link.
>> Sorry, my email totally wasn't clear. I meant that the example in the
>> package description doesn't
>> run: 
>> http://hackage.haskell.org/packages/archive/xml-enumerator/0.4.3.1/doc/html/Text-XML-Stream-Parse.html#t:ParseSettings
>> I'll read through that article.
>> 
>> On Nov 8, 2011, at 7:01 AM, Michael Snoyman wrote:
>> 
>> Here's a blog post on the package:
>> http://www.yesodweb.com/blog/2011/10/xml-enumerator . It doesn't cover
>> the streaming interface, but it might give you a good overview of the
>> package in general. I'm not sure what you mean by "it doesn't run,"
>> but you'll need at least a basic understanding of enumerators to get
>> off the ground.
>> 
>> On Tue, Nov 8, 2011 at 5:38 AM, Sean Hess <seanh...@gmail.com> wrote:
>> 
>> I cannot seem to find a working example of xml-enumerator. It doesn't run:
>> 
>> the names seem to have changed for some things, and I'm too much of a
>> 
>> beginner to figure it out easily.
>> 
>> http://hackage.haskell.org/packages/archive/xml-enumerator/0.4.3.1/doc/html/Text-XML-Stream-Parse.html#t:ParseSettings
>> 
>> On Nov 7, 2011, at 7:59 PM, Felipe Almeida Lessa wrote:
>> 
>> On Tue, Nov 8, 2011 at 12:45 AM, Sean Hess <seanh...@gmail.com> wrote:
>> 
>> I want to parse a large xml file (2GB), without putting the whole thing into
>> 
>> memory. It's pretty simple with a sax parser in most languages, you just
>> 
>> stream bytes to the sax parser, and wait for sax events.
>> 
>> I recommend you taking a look at xml-enumerator [1] and
>> 
>> libxml-enumerator [2].  They are the SAX parsers you know from the
>> 
>> imperative world but much easier to write =).  In particular, you
>> 
>> don't need to rely on lazyness.
>> 
>> Cheers,
>> 
>> [1] http://hackage.haskell.org/package/xml-enumerator
>> 
>> [2] http://hackage.haskell.org/package/libxml-enumerator
>> 
>> --
>> 
>> Felipe.
>> 
>> 
>> _______________________________________________
>> 
>> Beginners mailing list
>> 
>> Beginners@haskell.org
>> 
>> http://www.haskell.org/mailman/listinfo/beginners
>> 
>> 
>> 
>> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20111108/51f0620a/attachment-0001.htm>

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

Message: 2
Date: Tue, 8 Nov 2011 08:28:33 -0700
From: Sean Hess <seanh...@gmail.com>
Subject: Re: [Haskell-beginners] Noisy Linking
To: Zhi-Qiang Lei <zhiqiang....@gmail.com>
Cc: Haskell Beginer <beginners@haskell.org>
Message-ID: <32b3b139-7d57-418c-ae23-763e8274a...@gmail.com>
Content-Type: text/plain; charset=windows-1252

That's been happening to me too. I don't know what it means though :)

On Nov 8, 2011, at 6:53 AM, Zhi-Qiang Lei wrote:

> Hi,
> 
> The console comes out lots of warning message and performs slowly when I 
> compile my code. Google does not help. Does anybody know what it refers to? 
> I'm using Mac OS X 10.7.2.
> 
> bogon% make test
> ghc --make -isrc -fhpc Test.hs
> [1 of 2] Compiling Miner            ( src/Miner.hs, src/Miner.o )
> [2 of 2] Compiling Main             ( Test.hs, Test.o )
> Linking Test ...
> ld: warning: could not create compact unwind for .LFB3: non-standard register 
> 5 being saved in prolog
> ld: warning: text reloc in _r15W_info to 
> _base_GHCziWord_zdfIntegralWord32_closure
> ld: warning: text reloc in _r15W_info to 
> _Cryptozm4zi2zi4_DataziDigestziSHA2_zdfShowHash8_closure
> ld: warning: text reloc in _r15W_info to non_lazy_ptr
> ld: warning: text reloc in _r15W_info to non_lazy_ptr
> ld: warning: text reloc in _r15W_info to non_lazy_ptr
> ld: warning: text reloc in _r15Y_info to _base_GHCziWord_zdfEqWord32_closure
> ld: warning: text reloc in _r15Y_info to 
> _Cryptozm4zi2zi4_DataziDigestziSHA2_zdfEqHash8_closure
> ld: warning: text reloc in _r15Y_info to non_lazy_ptr
> ld: warning: text reloc in _r15Y_info to non_lazy_ptr
> ld: warning: text reloc in _r15Y_info to non_lazy_ptr
> ld: warning: text reloc in _r160_info to _r15Y_closure
> ld: warning: text reloc in _r160_info to _base_GHCziWord_zdfOrdWord32_closure
> ld: warning: text reloc in _r160_info to 
> _Cryptozm4zi2zi4_DataziDigestziSHA2_zdfOrdHash8_closure
> ld: warning: text reloc in _r160_info to non_lazy_ptr
> ld: warning: text reloc in _r160_info to non_lazy_ptr
> ld: warning: text reloc in _r160_info to non_lazy_ptr
> ld: warning: text reloc in _r162_info to _base_GHCziWord_zdfEqWord8_closure
> ld: warning: text reloc in _r162_info to _base_GHCziClasses_zdfEqZMZN_closure
> ld: warning: text reloc in _r162_info to non_lazy_ptr
> ld: warning: text reloc in _r162_info to non_lazy_ptr
> ld: warning: text reloc in _r162_info to non_lazy_ptr
> ld: warning: text reloc in _r164_info to _r162_closure
> ld: warning: text reloc in _r164_info to _base_GHCziWord_zdfOrdWord8_closure
> ld: warning: text reloc in _r164_info to _base_GHCziClasses_zdfOrdZMZN_closure
> ld: warning: text reloc in _r164_info to non_lazy_ptr
> ld: warning: text reloc in _r164_info to non_lazy_ptr
> ld: warning: text reloc in _r164_info to non_lazy_ptr
> ?...
> 
> Best regards,
> Zhi-Qiang Lei
> zhiqiang....@gmail.com
> 
> 
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners




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

Message: 3
Date: Tue, 8 Nov 2011 10:42:53 -0500
From: Brandon Allbery <allber...@gmail.com>
Subject: Re: [Haskell-beginners] Noisy Linking
To: Sean Hess <seanh...@gmail.com>
Cc: Haskell Beginer <beginners@haskell.org>
Message-ID:
        <cakfcl4uucodvu_yyb8wurbkg3qaj3t6wqvsxf8xsbqjzfui...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Tue, Nov 8, 2011 at 10:28, Sean Hess <seanh...@gmail.com> wrote:

> That's been happening to me too. I don't know what it means though :)


It means Apple changed the rules *yet again* without making the
documentation of those changes (and what to do about them) readily
available, and the GHC folks haven't managed to  reverse engineer the Apple
devs' thought processes yet.  :/

-- 
brandon s allbery                                      allber...@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20111108/ac74eb4d/attachment-0001.htm>

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

Message: 4
Date: Tue, 8 Nov 2011 16:43:24 +0100
From: Daniel Fischer <daniel.is.fisc...@googlemail.com>
Subject: Re: [Haskell-beginners] Noisy Linking
To: beginners@haskell.org
Message-ID: <201111081643.24888.daniel.is.fisc...@googlemail.com>
Content-Type: Text/Plain;  charset="windows-1252"

On Tuesday 08 November 2011, 16:28:33, Sean Hess wrote:
> That's been happening to me too. I don't know what it means though :)

You're not alone:

http://hackage.haskell.org/trac/ghc/changeset/20705dff179ed09f37a7db474109cccef6f9afec

>---------------------------------------------------------------

commit 20705dff179ed09f37a7db474109cccef6f9afec
Author: Ian Lynagh <ig...@earth.li>
Date:   Thu Oct 6 19:40:51 2011 +0100

    Silence "text reloc" warnings on OS X / x86
    
    ld gives loads of warnings like:
        ld: warning: text reloc in _base_GHCziArr_unsafeArray_info to 
_base_GHCziArr_unsafeArray_closure
    when linking any program. We're not sure whether this is something we
    ought to fix, but for now we use the -Wl,-read_only_relocs,suppress 
flag
    to silence them.




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

Message: 5
Date: Wed, 09 Nov 2011 07:18:14 +0200
From: Lev Broido <lev.bro...@gmail.com>
Subject: [Haskell-beginners] Help : foldl skipping one value in list
To: beginners@haskell.org
Message-ID: <4eba0d16....@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi
I am implementing toy loop search algorithm in graph .
I encountered strange problem -- it seems , that fold doesn't run on the 
whole list .
Code is at http://hpaste.org/53776
Section in question is updVis function
Problem occurs when _newStateMap_2 is being calculated
Please advise.

Thanks,
Lev




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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 41, Issue 12
*****************************************

Reply via email to