2009/5/12 Wei Hu <wei...@gmail.com>:
> I tried to run fxc on the Catch Up demo, and got this error:
>
> fxc: src/Flapjax/HtmlEmbedding.hs:25:9-22: No instance nor default
> method for class operation BrownPLT.Html.Syntax.prettyPrintScript
It looks like a compile-time error. What compiler and environment do
you use?
You can use the lovely "cabal install" command to spare yourself the
effort; works flawlessly fine here on Arch.
Cheers,
Artyom Shalkhakov.
Oops, I meant WebBits when I said about Flapjax compiler, sorry.
> So what I did was git clone flapjax, cd
> compiler, and ran "cabal install" from that directory. There was a
> warning while compiling Flapjax.HtmlEmbedding:
>
> src/Flapjax/HtmlEmbedding.hs:25:9:
> Warning: No explicit method nor default method for
> `BrownPLT.Html.Syntax.prettyPrintScript'
> In the instance declaration for `Script Flapjax'
This warning says what it says. :) I suppose there's nothing wrong
with unimplemented class method if it's not used anywhere (which
seems to be the case).
Cheers,
Artyom Shalkhakov.
http://www.cs.brown.edu/~arjun/tmp/fxc_2.0_i386.deb
It installs to /usr/local.
Let me know how it goes.
Arjun
I've pushed an update to github. If you pull and recompile, it should
work just fine.
Arjun