[Haskell-cafe] Fwd: Pointers by using functions

Kim-Ee Yeoh ky3 at atamo.com
Sun Sep 21 19:54:09 UTC 2014


On Mon, Sep 22, 2014 at 2:26 AM, Holden Lee <holdenlee at alum.mit.edu> wrote:

> What is the best way to implement data structures that use pointers in
> Haskell?


Think at a higher level. Those structures are used to solve what problem?
How could that problem be solved haskell-y?

But if you just want some simulation, there's the state monad. You could
simulate a malloc-ish memory heap using vanilla Data.Map.

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140922/ff1411d8/attachment.html>


More information about the Haskell-Cafe mailing list