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

phase C pre-processor' failed - on doing runhaskell Examples.hs` #11

Open
ghost opened this issue Jul 3, 2015 · 2 comments
Open

phase C pre-processor' failed - on doing runhaskell Examples.hs` #11

ghost opened this issue Jul 3, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2015

Commands on ubuntu 14 m/c:
cabal install postgresql-orm -- success
ghc-pkg list | grep postgresql-orm -- shows postgresql-orm-0.3.2
git clone https://github.com/alevy/postgresql-orm.git && cd postgresql-orm
runhaskell Examples.hs

It throws error as,

Database/PostgreSQL/Escape.hs:61:0:
     error: missing binary operator before token "("
     #if MIN_VERSION_bytestring(0,10,6)
     ^
phase `C pre-processor' failed (exitcode = 1)
@alevy
Copy link
Owner

alevy commented Aug 11, 2015

Which version of GHC are you using? Do you have cpphs installed?

@ghost
Copy link
Author

ghost commented Aug 11, 2015

ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.4
and
sudo dpkg -l | grep cpphs
ii cpphs 1.16-2 amd64 Simplified cpp-a-like preprocessor for Haskell

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