[Haskell-cafe] Haskell equivalent toPerl stat function

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Aug 14 12:30:02 EDT 2008

Hello John,

Thursday, August 14, 2008, 8:26:00 PM, you wrote:

> See System.Posix.Files.

... on Unix. there is also universal function  in System.Directory:

 getModificationTime       -- :: FilePath -> IO ClockTime

> http://hackage.haskell.org/packages/archive/unix/
> 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

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list