On Thu, May 6, 2010 at 12:37 PM, Bill Atkins <watk...@alum.rpi.edu> wrote:
> Just curious: why does getModificationTime take an IO FileStatus rather than
> a FileStatus?
>

It doesn't. getModificationTime is a pure function (think of it like a
record accessor).

liftM makes it take IO FileStatus because that is what liftM is for :)
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to