You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But cabal install numerals does not work here, I need a small patch to the sources. Can you incorporate that into a new release? I'd like to distribute a package depending on numerals, and I can't fix numerals on every machine where I need it.
When trying to install numerals (latest version, 0.4), I get:
$ cabal build
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring numerals-0.4...
Building numerals-0.4...
Preprocessing library numerals-0.4...
src/Text/Numeral/Exp/Reified.hs:6:4:
error: invalid preprocessing directive
#-}
^
1 error generated.
[ FIX THIS ]
pgiarrusso [BlueVelvet: ~/Documents/Research/Paolo/tools/numerals-0.4: 00:50: 6 (0)]
$ cabal build
Building numerals-0.4...
Preprocessing library numerals-0.4...
src/Text/Numeral/Misc.hs:6:4:
error: invalid preprocessing directive
#-}
^
1 error generated.
This is on Mac OS X 10.9.2, where cpp is provided by default by clang (I'm guessing):
$ cpp --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
I just installed the Apple Developer Tools, nothing fancy here.
I don't know for sure what I should actually check to pinpoint this to clang, and I might be wrong on that — it's just an educated guess. If you cannot reproduce the problem or have issues with the fix, I can investigate more on my system if you have pointers.
Cheers,
Paolo
The text was updated successfully, but these errors were encountered:
This is indeed a bug somewhere in GHC. But the workaround is easy as you mentioned. I now use a different style for the language pragmas that avoids this problem. Instead of
{-# LANGUAGE OptionA
, OptionB
, OptionC
#-}
I use
{-# LANGUAGE OptionA #-}
{-# LANGUAGE OptionB #-}
{-# LANGUAGE OptionC #-}
I will fix this as soon as possible. Unfortunately that is probably this Friday or Saturday. Also note that there are some API changes between version 0.4 and the git head version.
Also note that there are some API changes between version 0.4 and the git head version.
I'm planning to use it, so I can just as well learn the new API.
A fixed version of the old one might be nice for some people, but I'm fine either way. Also, I need really basic functionality (just numbers for English).
Hi, thanks for this package!
But
cabal install numerals
does not work here, I need a small patch to the sources. Can you incorporate that into a new release? I'd like to distribute a package depending on numerals, and I can't fix numerals on every machine where I need it.When trying to install numerals (latest version, 0.4), I get:
This is the fix which works for me:
This is on Mac OS X 10.9.2, where cpp is provided by default by clang (I'm guessing):
I just installed the Apple Developer Tools, nothing fancy here.
I don't know for sure what I should actually check to pinpoint this to clang, and I might be wrong on that — it's just an educated guess. If you cannot reproduce the problem or have issues with the fix, I can investigate more on my system if you have pointers.
Cheers,
Paolo
The text was updated successfully, but these errors were encountered: