<br>On Fri, Jun 17, 2011 at 2:37 AM, Henning Thielemann <span dir="ltr">&lt;<a href="mailto:lemming@henning-thielemann.de">lemming@henning-thielemann.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On Thu, 16 Jun 2011, Felipe Almeida Lessa wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[1] <a href="http://hackage.haskell.org/package/bytestring-csv" target="_blank">http://hackage.haskell.org/<u></u>package/bytestring-csv</a><br>
[2] <a href="http://hackage.haskell.org/package/csv-enumerator" target="_blank">http://hackage.haskell.org/<u></u>package/csv-enumerator</a><br>
[3] <a href="http://hackage.haskell.org/package/spreadsheet" target="_blank">http://hackage.haskell.org/<u></u>package/spreadsheet</a><br>
[4] <a href="http://hackage.haskell.org/package/csv" target="_blank">http://hackage.haskell.org/<u></u>package/csv</a><br>
[5] <a href="http://hackage.haskell.org/package/ssv" target="_blank">http://hackage.haskell.org/<u></u>package/ssv</a><br>
</blockquote>
<br></div>
I have updated<br>
  <a href="http://www.haskell.org/haskellwiki/Spreadsheet" target="_blank">http://www.haskell.org/<u></u>haskellwiki/Spreadsheet</a><br>
<br>
</blockquote></div><br>=== I am trying Data.Spreadseet.<a name="v:fromStringSimple" class="def">fromStringSimple , which is:<br></a><div class="top"><p class="src"><a name="v:fromString" class="def">fromString</a> :: <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:Char">Char</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:Char">Char</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String">String</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/explicit-exception/0.1.6/doc/html/Control-Monad-Exception-Asynchronous.html#t:Exceptional">Exceptional</a> UserMessage <a href="http://hackage.haskell.org/packages/archive/spreadsheet/0.1.1/doc/html/Data-Spreadsheet.html#t:T">T</a><a href="http://hackage.haskell.org/packages/archive/spreadsheet/0.1.1/doc/html/src/Data-Spreadsheet.html#fromString" class="link">Source</a></p>
<div class="doc"><p><code>fromString qm sep text</code> parses <code>text</code> into a spreadsheet,
using the quotation character <code>qm</code> and the separator character <code>sep</code>.
</p></div></div><a name="v:fromStringSimple" class="def">fromStringSimple</a> :: <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:Char">Char</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:Char">Char</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/base/4.3.1.0/doc/html/Data-Char.html#t:String">String</a> -&gt; <a href="http://hackage.haskell.org/packages/archive/spreadsheet/0.1.1/doc/html/Data-Spreadsheet.html#t:T">T</a><br>
<a name="v:fromStringSimple" class="def"></a><br>=== Here is my test where quotation mark is a quote (&quot;) and separator is a comma (,):<br><br clear="all">t1 = fromStringSimple &#39;&quot;&#39; &#39;,&#39; tMsg<br><br>
tMsg = &quot;<a href="http://REP-RPB1.domain1.systemhost.net">REP-RPB1.domain1.systemhost.net</a>,Microsoft.Windows.Computer:<a href="http://REP-RPB1.domain1.systemhost.net">REP-RPB1.domain1.systemhost.net</a>,- System Uptime &gt; 30 Days,UIGeneratedMonitor3a4ca3359ec34015bee55fd7942836d8,2,Custom,10/17/2009 8:48:38 AM&quot;<br>
<br>=== As a result I get:<br>[[&quot;*** Exception: dequoteSimple: string does not end with a quotation mark<br><br>=== Question:<br>In this particular line I have no quotation mark, but in other lines I may have quoted text fields, separated by commas (,) and also with commas *iside* quoted fields .  What parameters should I pass to &#39;<a name="v:fromStringSimple" class="def">fromStringSimple&#39; so it worked in both cases:</a> 1) for lines with quotation marks and 2) for lines without quotation marks?<br>
<br>Thanks!<br><br>