Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Remove hs-source-dirs from test suite #20

Merged
merged 1 commit into from

2 participants

@nomeata

Otherwise the previously compiled library and the source files mix up, causing the test suite to not compile with this error message:

[ 8 of 11] Compiling Language.JavaScript.Parser.Parser ( src/Language/JavaScript/Parser/Parser.hs, dist-ghc/build/test-language-javascript/test-language-javascript-tmp/Language/JavaScript/Parser/Parser.o )

src/Language/JavaScript/Parser/Parser.hs:28:38:
    Couldn't match expected type `Alex AST.JSNode'
                with actual type `language-javascript-0.5.6:Language.JavaScript.Parser.Lexer.Alex
                                    Language.JavaScript.Parser.AST.JSNode'
    In the second argument of `runAlex', namely `parseProgram'
    In the expression: runAlex input parseProgram
    In an equation for `parse':
        parse input _srcName = runAlex input parseProgram
make: *** [build-ghc-stamp] Error 1
@nomeata nomeata Remove hs-source-dirs from test suite
Otherwise the previously compiled library and the source files mix up, causing the test suite to not compile with this error message:
```
[ 8 of 11] Compiling Language.JavaScript.Parser.Parser ( src/Language/JavaScript/Parser/Parser.hs, dist-ghc/build/test-language-javascript/test-language-javascript-tmp/Language/JavaScript/Parser/Parser.o )

src/Language/JavaScript/Parser/Parser.hs:28:38:
    Couldn't match expected type `Alex AST.JSNode'
                with actual type `language-javascript-0.5.6:Language.JavaScript.Parser.Lexer.Alex
                                    Language.JavaScript.Parser.AST.JSNode'
    In the second argument of `runAlex', namely `parseProgram'
    In the expression: runAlex input parseProgram
    In an equation for `parse':
        parse input _srcName = runAlex input parseProgram
make: *** [build-ghc-stamp] Error 1
```
04e0275
@alanz alanz merged commit 2ee7754 into erikd:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 20, 2012
  1. @nomeata

    Remove hs-source-dirs from test suite

    nomeata authored
    Otherwise the previously compiled library and the source files mix up, causing the test suite to not compile with this error message:
    ```
    [ 8 of 11] Compiling Language.JavaScript.Parser.Parser ( src/Language/JavaScript/Parser/Parser.hs, dist-ghc/build/test-language-javascript/test-language-javascript-tmp/Language/JavaScript/Parser/Parser.o )
    
    src/Language/JavaScript/Parser/Parser.hs:28:38:
        Couldn't match expected type `Alex AST.JSNode'
                    with actual type `language-javascript-0.5.6:Language.JavaScript.Parser.Lexer.Alex
                                        Language.JavaScript.Parser.AST.JSNode'
        In the second argument of `runAlex', namely `parseProgram'
        In the expression: runAlex input parseProgram
        In an equation for `parse':
            parse input _srcName = runAlex input parseProgram
    make: *** [build-ghc-stamp] Error 1
    ```
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  language-javascript.cabal
View
3  language-javascript.cabal
@@ -72,8 +72,7 @@ Test-Suite test-language-javascript
, blaze-builder >= 0.2 && < 1
-- need our own library for tests
, language-javascript >= 0.5.5
- hs-source-dirs: . src ./dist/build
-
+
source-repository head
type: git
Something went wrong with that request. Please try again.