System.Posix (symbolic links)

Johannes Goetz jgoetz at jgoetz.net
Sat Nov 29 20:24:08 EST 2003


Hi! Sorry for posting this message twice. Last message had wrong subject.

Calling isSymbolicLink always returns False... (ghc-6.0.1linux binary 
tarball)
It doesn't make a difference whether the symbolic link points
to a regular file or a directory.
Test code:

#ln -s test link
#ghc Test.hs -o test
#./test
False
#

Test.hs:

module Main(main) where
import System.Posix
main = do
status <- getFileStatus "link"
print (isSymbolicLink status)


Johannes



More information about the Haskell mailing list