On Jun 22, 2009, at 07:37 , Duncan Coutts wrote:
One explanation is that isBlah asks is this thing a blah, but we're
not asking that because there is an indirection via the filepath.
We're
asking does this filepath refer to a directory not is this
filename a
directory. The latter could be a
On Tue, 2009-06-23 at 09:31 -0400, Brandon S. Allbery KF8NH wrote:
On Jun 22, 2009, at 07:37 , Duncan Coutts wrote:
One explanation is that isBlah asks is this thing a blah, but we're
not asking that because there is an indirection via the filepath.
We're
asking does this filepath refer
Hello Duncan,
Tuesday, June 23, 2009, 6:34:17 PM, you wrote:
import System.Posix.Files (getFileStatus, isDirectory)
Yeah, if we could make a standard portable variant of this, that'd be
great.
isdir - withFileStatus isdir? filename isDirectory
module System.Directory
withFileStatus ::
On Jun 23, 2009, at 10:34 , Duncan Coutts wrote:
On Tue, 2009-06-23 at 09:31 -0400, Brandon S. Allbery KF8NH wrote:
Hypothetical?
import System.Posix.Files (getFileStatus, isDirectory)
Yeah, if we could make a standard portable variant of this, that'd be
great.
I've wanted to do that
I've been hoogling like bad to try to determine if a function like
this exists.
getDirectoryContents returns sub-directories as well as file names. I
want only the latter, so I'm looking for a suitable filter.
--
Colin Adams
Preston Lancashire
___
On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Adamsco...@colina.demon.co.uk wrote:
I've been hoogling like bad to try to determine if a function like
this exists.
getDirectoryContents returns sub-directories as well as file names. I
want only the latter, so I'm looking for a suitable filter.
Colin Paul Adams wrote:
I've been hoogling like bad to try to determine if a function like
this exists.
getDirectoryContents returns sub-directories as well as file names. I
want only the latter, so I'm looking for a suitable filter.
The first example in this chapter of Real World Haskell
Hello Colin,
Monday, June 22, 2009, 10:12:57 AM, you wrote:
I've been hoogling like bad to try to determine if a function like
this exists.
getDirectoryContents returns sub-directories as well as file names. I
want only the latter, so I'm looking for a suitable filter.
isdir -
Judah == Judah Jacobson judah.jacob...@gmail.com writes:
Judah On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah Adamsco...@colina.demon.co.uk wrote:
I've been hoogling like bad to try to determine if a function
like this exists.
getDirectoryContents returns
2009/6/22 Colin Paul Adams co...@colina.demon.co.uk:
Judah == Judah Jacobson judah.jacob...@gmail.com writes:
Judah On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah Adamsco...@colina.demon.co.uk wrote:
I've been hoogling like bad to try to determine if a function
like this
On Mon, 2009-06-22 at 08:53 +0200, Deniz Dogan wrote:
2009/6/22 Colin Paul Adams co...@colina.demon.co.uk:
Judah == Judah Jacobson judah.jacob...@gmail.com writes:
Judah On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah Adamsco...@colina.demon.co.uk wrote:
I've been hoogling
2009/6/22 Duncan Coutts duncan.cou...@worc.ox.ac.uk:
On Mon, 2009-06-22 at 08:53 +0200, Deniz Dogan wrote:
2009/6/22 Colin Paul Adams co...@colina.demon.co.uk:
Judah == Judah Jacobson judah.jacob...@gmail.com writes:
Judah On Sun, Jun 21, 2009 at 11:12 PM, Colin Paul
Judah
On Mon, Jun 22, 2009 at 2:09 PM, Deniz Dogandeniz.a.m.do...@gmail.com wrote:
I think see what you mean, but I find the argument more of an excuse
to the poor naming than a solid argument for it. Following the
convention and intuition that most users have should be more important
than making
2009/6/22 Max Rabkin max.rab...@gmail.com:
On Mon, Jun 22, 2009 at 2:09 PM, Deniz Dogandeniz.a.m.do...@gmail.com wrote:
I think see what you mean, but I find the argument more of an excuse
to the poor naming than a solid argument for it. Following the
convention and intuition that most users
Deniz Dogan deniz.a.m.do...@gmail.com writes:
One explanation is that isBlah asks is this thing a blah, but we're
not asking that because there is an indirection via the filepath. We're
asking does this filepath refer to a directory not is this filename a
directory.
I think see what you
On Mon, Jun 22, 2009 at 2:54 PM, Deniz Dogandeniz.a.m.do...@gmail.com wrote:
Are you saying that when a function is named isDirectory you expect
it to only check for a trailing forward slash character?
No. I'm saying that *if* isDirectory existed, then (isDirectory
/no/such/directory/) should
16 matches
Mail list logo