alevy / postgresql-orm

An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.
http://simple.cx
GNU General Public License v3.0
78 stars 12 forks source link

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

Open ghost opened 9 years ago

ghost commented 9 years ago

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 commented 9 years ago

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

ghost commented 9 years ago

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