Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hs-source-dirs from test suite #20

Merged
merged 1 commit into from
Oct 21, 2012
Merged

Remove hs-source-dirs from test suite #20

merged 1 commit into from
Oct 21, 2012

Conversation

nomeata
Copy link
Contributor

@nomeata nomeata commented Oct 20, 2012

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

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
```
alanz added a commit that referenced this pull request Oct 21, 2012
Remove hs-source-dirs from test suite

Oddly enough, in my setup it does not make a difference either way, so I will remove it.
@alanz alanz merged commit 2ee7754 into erikd:master Oct 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants