No subject


Thu Feb 24 17:58:36 CET 2011


enumFile' is like enumFile above, but type restricted to data in the
lazy ByteString
format, which is more efficient than plain Strings. (enumFile supports
multiple types, but in this example there is not enough information for
Haskell to choose one of them, so we must use enum*f*ile' or use :: to
specify a type explicitly.


Which is fine, but shouldn't there also be iterHandle' and iterStream'?

Also I'm guessing the *f* is a typo that should be *F*.

Cheers,

-John

--20cf3054a09917aa1604a6cea0d3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>Hi all,</div><div><br></div><div>From the IterIO tutorial:</div><div><=
br></div><blockquote class=3D"webkit-indent-blockquote" style=3D"margin: 0 =
0 0 40px; border: none; padding: 0px;"><font class=3D"Apple-style-span" fac=
e=3D"&#39;courier new&#39;, monospace">enumFile&#39;</font> is like <font c=
lass=3D"Apple-style-span" face=3D"&#39;courier new&#39;, monospace">enumFil=
e</font> above, but type restricted to data in the lazy <font class=3D"Appl=
e-style-span" face=3D"&#39;courier new&#39;, monospace">ByteString </font>f=
ormat, which is more efficient than plain <font class=3D"Apple-style-span" =
face=3D"&#39;courier new&#39;, monospace">Strings</font>. (<font class=3D"A=
pple-style-span" face=3D"&#39;courier new&#39;, monospace">enumFile </font>=
supports multiple types, but in this example there is not enough informatio=
n for Haskell to choose one of them, so we must use <font class=3D"Apple-st=
yle-span" face=3D"&#39;courier new&#39;, monospace">enum<font class=3D"Appl=
e-style-span" color=3D"#ff0000"><b>f</b></font>ile&#39;</font> or use <font=
 class=3D"Apple-style-span" face=3D"&#39;courier new&#39;, monospace">::</f=
ont> to specify a type explicitly.<br>
</blockquote><br><div>Which is fine, but shouldn&#39;t there also be <font =
class=3D"Apple-style-span" face=3D"&#39;courier new&#39;, monospace">iterHa=
ndle&#39;</font> and <font class=3D"Apple-style-span" face=3D"&#39;courier =
new&#39;, monospace">iterStream&#39;</font>?</div>
<div><br></div><div>Also I&#39;m guessing the <b><font class=3D"Apple-style=
-span" color=3D"#ff0000">f</font></b> is a typo that should be <font class=
=3D"Apple-style-span" color=3D"#009900"><b>F</b></font>.</div><div><br></di=
v><div>
Cheers,</div><div><br></div><div>-John</div><div><br></div>

--20cf3054a09917aa1604a6cea0d3--



More information about the Haskell-Cafe mailing list