[Haskell-cafe] Info about List with terminal element
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4291 bytes
Desc: S/MIME Cryptographic Signature
More information about the Haskell-Cafe