[Haskell-cafe] Haskell equivalent toPerl stat function

John Van Enk vanenkj at gmail.com
Thu Aug 14 12:26:00 EDT 2008


See System.Posix.Files.

http://hackage.haskell.org/packages/archive/unix/2.3.0.0/doc/html/System-Posix-Files.html#v%3AmodificationTime

I think this is what you want.

On Thu, Aug 14, 2008 at 12:14 PM, A Smith <asmith9983 at gmail.com> wrote:

> Hi
> I'm new to Haskell, so correct me if this is the wrong list or the
> wrong question.
> I'm looking for a function similar to the Perl stat  to provide me
> with the last modify time of a file.
> I've been poring over source code entries referencing hfileSize but
> can't find the specific bit which reads the directory entry, so I
> could copy the code.
> Any advice would be welcome.
> --
> Andrew in Edinburgh,Scotland
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



-- 
/jve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080814/93cc1508/attachment.htm


More information about the Haskell-Cafe mailing list