[Haskell-beginners] module "static" data

Dennis Raddle dennis.raddle at gmail.com
Tue Jan 10 19:45:57 CET 2012


I would like to know how to do something in Haskell. I have a module which
needs to load some data from disk in order to run, and I'd like to load it
at most once. In C, I would use a "static" variable in the module to store
the data. How can I do this in Haskell?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120110/bd92fd9c/attachment.htm>


More information about the Beginners mailing list