[Haskell-cafe] getDirectoryContents still causing problems Re: problems building ycr2js (hopefully fixed)

Thomas Hartman tphyahoo at gmail.com
Mon Nov 26 12:05:13 EST 2007


still having problems darcs pulling your updates, related to System.FilePath.

did you make clean and then make again?

I darcs pulled everything.

(cd src/translator/js; make all install)

... ...
(cd /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell;
\
          for f in `find . -name '*.hs' | sort` ; do make -s -f
/home/thartman/haskell-installs/yhc-install/yhc/src/translat\
or/js/Makefile `dirname $f`/`basename $f .hs`.ycr ; done)
yhc: /home/thartman/haskell-installs/yhc-install/yhc/inst/lib/yhc/packages:
getDirectoryContents: does not exist (No such fi\
le or directory)

-s flag silences, we don't want that, with verbose output again we see
that make is failing for a huge number of packages

(cd /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/lib/h\
askell; \
          for f in `find . -name '*.hs' | sort` ; do make -f
/home/thartman/haskell-installs/yhc-install/yhc/src/translator/\
js/Makefile `dirname $f`/`basename $f .hs`.ycr ; done)
> yhc --core --no-bytecode CDOM/Level1/DomUtils.hs
yhc: /home/thartman/haskell-installs/yhc-install/yhc/inst/lib/yhc/packages:
getDirectoryContents: does not exist (No such fi\
le or directory)

make: *** [CDOM/Level1/DomUtils.ycr] Error 1
yhc --core --no-bytecode CDOM/Level1/Events.hs
yhc: /home/thartman/haskell-installs/yhc-install/yhc/inst/lib/yhc/packages:
getDirectoryContents: does not exist (No such fi\
le or directory)

...

thartman at none:~/haskell-installs/yhc-install/yhc/src/translator/js/lib/haskell>yhc
--core --no-bytecode CDOM/Level1/DomUtils\
.hs
yhc: /home/thartman/haskell-installs/yhc-install/yhc/inst/lib/yhc/packages:
getDirectoryContents: does not exist (No such fi\
le or directory)

Unfamiliar with yhc, I couldn't figure out where getDirectory contents
is being called from.

Grepping at the root, I guess something here is causing problems

thartman at none:~/haskell-installs/yhc-install/yhc>grep -irl
getDirectoryContents *
Make/Useful.hs
inst/bin/yhc
src/compiler98/Package.hs
src/packages/yhc-base-1.0/System/Directory.hs
src/packages/haskell98-1.0/Directory.hs
src/tester/Main.hs
tests/conformance98/Directory/getDirContents/Main.hs

best, thomas.

2007/11/25, Dimitry Golubovsky <golubovsky at gmail.com>:
> Thomas,
>
> On Nov 25, 2007 5:50 PM, Thomas Hartman <tphyahoo at gmail.com> wrote:
> > Thanks Dmitri, I also had to fix an issue with System.FilePath,
> > there's a message about this on haskell cafe.
>
> In fact, takeDirectory is the right replacement for getDirectory in
> older FilePath. I have pushed this change too.
>
> Thanks.
>
> --
> Dimitry Golubovsky
>
> Anywhere on the Web
>


More information about the Haskell-Cafe mailing list