[Haskell-cafe] Info about List with terminal element

David Kraeutmann kane at kane.cx
Wed Nov 25 19:38:11 UTC 2015


I'm not quite sure I understand the purpose of this structure. As far as I can tell, it's isomorphic to list (even under laziness) with some minor differences in performance characteristics (determining whether a cons cell is terminal requires evaluating the subsequent list to WHNF, whereas in your structure it follows from the constructor. But I think that's just a minor performance detail).

On 11/25/2015 8:04 PM, Silvio Frischknecht wrote:
> > readFile :: String -> List Error String
>
> should have been
>
> readFile :: String -> IO (List Error String)
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4291 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20151125/82990adf/attachment.bin>


More information about the Haskell-Cafe mailing list