[Haskell-cafe] Stupid newbie question of the day: why is newMVar in the IO monad?

Felipe Lessa felipe.lessa at gmail.com
Thu Apr 17 19:14:08 UTC 2014


There are at least two packages on Hackage that try to solve this
problem once and for all:

  http://hackage.haskell.org/package/global-variables
  http://hackage.haskell.org/package/safe-globals

Note that, for "global-variables", you may use an unexported newtype and
an empty string if just using a global string smells bad for you.

Cheers,

-- 
Felipe.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140417/fdf3bf2d/attachment.sig>


More information about the Haskell-Cafe mailing list