Control.Monad.ST module description should reference Data.STRef
|Reported by:||guest||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
The description of "Control.Monad.ST" should mention the highly related module "Data.STRef" somewhere, preferably so that a clickable link is generated in the HTML library documentation.
1 or 2 years ago, I was looking for a simple state monad, and found "Control.Monad.ST", but did not understand it all. Googling around, I found and used "Control.Monad.State" from the MTL-library instead.
Now I accidentally found "Data.STRef", and immediately understood how I could use "Control.Monad.ST". It works fine and it is easier to use for very simple states - especially since it is part of the standard library. A simple reference to "Data.STRef" would have clearified it immediately for me - and probably for others too.