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

Have to delete a statement to get stack build to work #48

Open
jstr045329 opened this issue Jan 23, 2019 · 0 comments
Open

Have to delete a statement to get stack build to work #48

jstr045329 opened this issue Jan 23, 2019 · 0 comments

Comments

@jstr045329
Copy link

When I run stack repl, I get a build error in hdbc-postgresql/Database/HDBC/PostgreSQL/Connection.hsc line 60. The error message:

Database/HDBC/PostgreSQL/Connection.hsc:60:130: error:
lexical error in string/character literal at character 's'

That line is a statement similar to:
60: do "some error message"
61: return whateverExpression

The weird part is that the letter 's' is in the middle of "some error message".

I deleted the entire error message expression, so the resulting file is:

60: do -- rest of line is blank
61: return whateverExpression

$ stack clean
$ stack build --ghc-options=-fforce-recomp

and the package builds and I can do things like this:

λ> conn <- connectPostgreSQL "host=localhost dbname=whateverName user=username"

and it appears to work okay, but obviously deleting error messages is not a real fix.

Does anybody know what this is about?

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

No branches or pull requests

1 participant