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:  Anyone suggest .csv file parser? (Francesco Ariis)
   2. Re:  comment on this debugging trick? (Dennis Raddle)
   3. Re:  Anyone suggest .csv file parser? (Ryan Trinkle)


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

Message: 1
Date: Sun, 29 Nov 2015 03:54:36 +0100
From: Francesco Ariis <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Anyone suggest .csv file parser?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

On Sat, Nov 28, 2015 at 09:42:58PM -0500, Jeon-Young Kang wrote:
> Hi all.
> 
> I am working on import *.csv file into haskell.
> 
> [..]
> 
> What is the best for this purpose?

I use http://hackage.haskell.org/package/csv and never had troubles
with it. `parseCSV` returns a list of lists ([[String]]) which is
easy enough to manipulate for whatever you need.



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

Message: 2
Date: Sun, 29 Nov 2015 00:02:51 -0800
From: Dennis Raddle <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] comment on this debugging trick?
Message-ID:
        <cakxlvookcu6z0xhocuyj7hfo8wadvpjsy9lsvscfm9g36x-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Sat, Nov 28, 2015 at 2:14 AM, Stephen Tetley <[email protected]>
wrote:

> Hi Dennis
>
> For this use case I would make a small, general parser combinator
> library / monad on top of XML.Light, then use the new parser
> combinators to make a specialized parser for your subset MusicXML.
>
> The common parser combinator libraries (Parsec, Attoparsec, ...) can't
> be used with XML.Light because their mechanics are consuming an input
> stream whereas processing XML (or JSON) is moving a cursor through a
> tree, but the common API provided by parser combinator libraries can
> be re-used productively for a tree (cursor) parser. As well as moving
> the cursor, the custom parser monad can handle errors and backtracking
> if needed.
>
>
Thanks for the pointers, Stephen. I will look into it. I don't know if I'll
have time to learn how to do this though. I'll keep it in mind for the
future.

This is a small, ongoing, no-pressure project, which is even lower pressure
when you consider I'm using what I call "just in time" debugging and
design. When I look at my use cases, I don't implement any that seem
unlikely. If they ever do occur, I can deal with them then. But I don't
just ignore cases willy-nilly -- I always consider if they do occur, that
the resulting bug will be obvious right away and lead me directly to the
answer.

This is interesting when dealing with music playback. Some unexpected cases
won't give an error message but will affect the playback sound -- so I
always ask myself, "Will this bug be obvious, really screw up the sound in
a major way, so I know it's happening?" Because what I don't want are bugs
that create small effects that I might miss for a while so I miss the
critical moment they were introduced.

I don't know the definition of the different processes but does "Just In
Time" design/debugging have something to do with Agile?

D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20151129/63cd5b0d/attachment-0001.html>

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

Message: 3
Date: Sun, 29 Nov 2015 04:07:23 -0500
From: Ryan Trinkle <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Anyone suggest .csv file parser?
Message-ID:
        <cahnepiyfh7hbfqninc3zqq5areyksu0vaw3uv7qqklzgy5f...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I'd recommend taking a look at cassava
<https://hackage.haskell.org/package/cassava>.

On Sat, Nov 28, 2015 at 9:54 PM, Francesco Ariis <[email protected]> wrote:

> On Sat, Nov 28, 2015 at 09:42:58PM -0500, Jeon-Young Kang wrote:
> > Hi all.
> >
> > I am working on import *.csv file into haskell.
> >
> > [..]
> >
> > What is the best for this purpose?
>
> I use http://hackage.haskell.org/package/csv and never had troubles
> with it. `parseCSV` returns a list of lists ([[String]]) which is
> easy enough to manipulate for whatever you need.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20151129/1a77f377/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 89, Issue 53
*****************************************

Reply via email to