base-unicode-symbols not compiling

Hi Bas, I'm getting sporadic bug reports about base-unicode-symbols not compiling, which is preventing Yesod from compiling. I actually got the same error on GHC 6.12.1, and hacked around it by manually modifying the file to avoid the problematic CPP code. You can see a report in a Yesod book comment[1]. I think I remember you saying this is a problem with the CPP in GHC 6.12.1. Do you know if there's any workaround? Thanks, Michael [1] http://www.yesodweb.com/book/migrate7to8#iy1

CCing to Roel (base-unicode-symbols maintainer)
(Note that I see him today so expect to have a fix within a couple of hours)
On 21 April 2011 05:59, Michael Snoyman
Hi Bas,
I'm getting sporadic bug reports about base-unicode-symbols not compiling, which is preventing Yesod from compiling. I actually got the same error on GHC 6.12.1, and hacked around it by manually modifying the file to avoid the problematic CPP code. You can see a report in a Yesod book comment[1].
I think I remember you saying this is a problem with the CPP in GHC 6.12.1. Do you know if there's any workaround?
Thanks, Michael
Roel, according to [1] base-unicode-symbols-0.2.1.4 is still having trouble with: [12 of 12] Compiling Control.Arrow.Unicode ( Control/Arrow/Unicode.hs, dist/build/Control/Arrow/Unicode.o ) Control/Arrow/Unicode.hs:88:6: Not in scope: `>>>' Control/Arrow/Unicode.hs:96:6: Not in scope: `<<<' Can you fix it? Bas

On 21 April 2011 06:54, Bas van Dijk
[12 of 12] Compiling Control.Arrow.Unicode ( Control/Arrow/Unicode.hs, dist/build/Control/Arrow/Unicode.o ) Control/Arrow/Unicode.hs:88:6: Not in scope: `>>>' Control/Arrow/Unicode.hs:96:6: Not in scope: `<<<'
I can not reproduce this error. It tested as follows: cabal update install ghc-6.12.1 (32 bit) ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1 cabal install yesod ... consumed some coffee install ghc-6.12.3 (32 bit) ghc --version The Glorious Glasgow Haskell Compilation System, version 6.12.3 cabal install yesod ... consumed more coffee
Both times yesod installed without any problems. The "ghc-pkg list" output shows base-unicode-symbols-0.2.1.4 was succesfully installed. I would like some more information in order to track down the cause of the failed install. In other news, base-unicode-symbols now lives on github: https://github.com/roelvandijk/base-unicode-symbols

I may have found a solution: https://github.com/roelvandijk/base-unicode-symbols/issues/1 Will release a new version if the fix is confirmed to work.

Issue resolved. New version released: http://hackage.haskell.org/package/base-unicode-symbols-0.2.1.5 The problem was that in older cabal versions the MIN_VERSION_base macro was not enclosed in parenthesis. Thus prefixing that macro with ! for negation resulted in something different than I expected.

On Thu, Apr 21, 2011 at 11:55 PM, Roel van Dijk
Issue resolved. New version released: http://hackage.haskell.org/package/base-unicode-symbols-0.2.1.5
The problem was that in older cabal versions the MIN_VERSION_base macro was not enclosed in parenthesis. Thus prefixing that macro with ! for negation resulted in something different than I expected.
Awesome, thanks Roel. Michael
participants (3)
-
Bas van Dijk
-
Michael Snoyman
-
Roel van Dijk