[Haskell-cafe] trees and pointers

Serguey Zefirov sergueyz at gmail.com
Wed Jul 14 16:19:08 EDT 2010


2010/7/14 Sergey Mironov <ierton at gmail.com>:
> Hi cafe! I have a question of C-to-Haskell type:)
>
> Imagine web application wich allows users to browse some shared
> filesystem located at the server.
> Application stores every users's position within that filesystem
> (current directory or file).
>
> In C this can be implemented with the help of following data types:
>
> Any ideas?

Use IORef. ;)

PS
MVar is better, actually.


More information about the Haskell-Cafe mailing list