jswebtools / language-ecmascript

Haskell library: ECMAScript parser, pretty-printer and additional tools
Other
46 stars 26 forks source link

Compiler issue building with Cabal #50

Closed i-e-b closed 10 years ago

i-e-b commented 10 years ago

https://github.com/jswebtools/language-ecmascript/blob/master/src/Language/ECMAScript3/Parser.hs#L497

I'm getting the following error:

[13 of 13] Compiling Language.ECMAScript3 ( src/Language/ECMAScript3.hs, dist/build/Language/ECMAScript3.o )
In-place registering language-ecmascript-0.15.3...
Running Haddock for language-ecmascript-0.15.3...
Preprocessing library language-ecmascript-0.15.3...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: rts-1.0

dist/build/tmp-28522/src/Language/ECMAScript3/Parser.hs:497:19:
    parse error on input `-- ^ Note, the spec actually allows floats in property names.
                  -- This is left for legacy reasons and will be fixed in 1.0'

Could this be an indent error? ghc --version returns The Glorious Glasgow Haskell Compilation System, version 7.6.3

cabal --version returns

cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library 
achudnov commented 10 years ago

This looks like a Haddock parsing error. I'll look into it. In the meantime you can try disabling building the documentation and see if it helps.

On 12/5/2013 6:43 AM, Iain Ballard wrote:

https://github.com/jswebtools/language-ecmascript/blob/master/src/Language/ECMAScript3/Parser.hs#L497

I'm getting the following error:

|[13 of 13] Compiling Language.ECMAScript3 ( src/Language/ECMAScript3.hs, dist/build/Language/ECMAScript3.o ) In-place registering language-ecmascript-0.15.3... Running Haddock for language-ecmascript-0.15.3... Preprocessing library language-ecmascript-0.15.3... Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0

dist/build/tmp-28522/src/Language/ECMAScript3/Parser.hs:497:19: parse error on input `-- ^ Note, the spec actually allows floats in property names. -- This is left for legacy reasons and will be fixed in 1.0' |

Could this be an indent error? |ghc --version| returns |The Glorious Glasgow Haskell Compilation System, version 7.6.3|

|cabal --version| returns

cabal-install version 1.18.0.2 using version 1.18.1.2 of the Cabal library

— Reply to this email directly or view it on GitHub https://github.com/jswebtools/language-ecmascript/issues/50.

achudnov commented 10 years ago

I'm confirming the bug; will try to push a patch out in the next couple of days. Thanks for the report.

achudnov commented 10 years ago

Fixed in f7c2466f5ef6c2b53f5adcd365724bab954875e4, deployed as 0.15.4 (https://github.com/jswebtools/language-ecmascript/releases/tag/0.15.4). Thanks for the report!

i-e-b commented 10 years ago

Thank you!