[Haskell-cafe] problems building ycr2js

Thomas Hartman tphyahoo at gmail.com
Sat Nov 24 17:07:27 EST 2007


OK, I struggled through the instructions at

http://haskell.org/haskellwiki/Yhc/Javascript/Users_guide#Downloading

and am getting tripped up at

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

any advice?

... blah blah blah....
ghc --make -i../../../depends/filepath splitter.hs -o
/home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/inst\
/bin/splitter
[1 of 4] Compiling System.FilePath.Version_0_11 (
../../../depends/filepath/System/FilePath/Version_0_11.hs,
../../../depend\
s/filepath/System/FilePath/Version_0_11.o )
[2 of 4] Compiling System.FilePath  (
../../../depends/filepath/System/FilePath.hs,
../../../depends/filepath/System/FilePat\
h.o )
[4 of 4] Compiling Main             ( splitter.hs, splitter.o )
Linking /home/thartman/haskell-installs/yhc-install/yhc/src/translator/js/inst/bin/splitter
...
echo > W3C/addtags.idl
for tag in SUB SUP SPAN BDO I B U S \
                STRIKE BIG SMALL EM STRONG DFN CODE \
                SAMP KBD VAR CITE ACRONYM ABBR \
                DD DT NOFRAMES NOSCRIPT ADDRESS CENTER ; do \
                        ltag=`echo ${tag:1} | tr [:upper:] [:lower:]` ; \
                        echo "  interface HTML${tag:0:1}${ltag}Element
: HTMLElement {" >> W3C/addtags.idl ; \
                        echo "  };" >> W3C/addtags.idl ; \
                        echo >> W3C/addtags.idl ; \
                done
/bin/sh: Syntax error: Bad substitution
make: *** [W3C/addtags.idl] Error 2


More information about the Haskell-Cafe mailing list