[Haskell-cafe] Is StateT what I need?
Robin Green
greenrd at greenrd.org
Mon Dec 17 16:09:14 EST 2007
On Mon, 17 Dec 2007 16:04:24 -0500
"Brandon S. Allbery KF8NH" <allbery at ece.cmu.edu> wrote:
>
> On Dec 17, 2007, at 15:41 , Brent Yorgey wrote:
>
> > Yes, and in fact, you don't even need foldM. The only thing that
> > actually uses IO is the readFile, so ideally
>
> Actually, a quick check indicates that the regex functions used in
> getProcInfo are in IO as well (?!).
That's because they're implemented in C, and anything implemented in C
is potentially impure. Although, I'd have thought that they'd
*actually* be pure.
--
Robin
More information about the Haskell-Cafe
mailing list