You can use `ls` in the shelly package which besides filtering '.' and '..' will also give relative results if a relative path is given

On Sat, Dec 13, 2014 at 12:31 PM, Alexander Berntsen <alexander@plaimi.net> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 13/12/14 21:24, Henning Thielemann wrote:
> In the 'unix' package this would be the right behaviour, but I
> think not in 'directory'.
«getDirectoryContents dir returns a list of all entries in dir.» There
is nothing about the name or documentation of the function that
implies it will leave out random files from its result.
- --
Alexander
alexander@plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlSMohsACgkQRtClrXBQc7W1IgD/UmTIl1BqfX/XWoRLK7sXLinr
n4/eHWNjsSz8QoOK3O8BAI98lhQOa+K/UDV36hBjEWc2/ydSWvjUVPSlKLcq6wI8
=U3fO
-----END PGP SIGNATURE-----
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries