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

Control/Lens/Plated.hs: amend for ghc-7.10 #518

Merged
merged 1 commit into from Jan 29, 2015
Merged

Control/Lens/Plated.hs: amend for ghc-7.10 #518

merged 1 commit into from Jan 29, 2015

Conversation

trofi
Copy link
Contributor

@trofi trofi commented Jan 29, 2015

Build fails thusly (ghc-7.10.1_rc2/gcc-4.8.4):
Building lens-4.8...
Preprocessing library lens-4.8...

src/Control/Lens/Plated.hs:716:0:
     error: detected recursion whilst expanding macro "OVERLAPPING"
     instance OVERLAPPING GPlated a (K1 i a) where
     ^

The reason is recursive macro definition:
#define OVERLAPPING {-# OVERLAPPING #-}

Fixed by naming thing on the left differently.

Signed-off-by: Sergei Trofimovich siarheit@google.com

Build fails thusly (ghc-7.10.1_rc2/gcc-4.8.4):
    Building lens-4.8...
    Preprocessing library lens-4.8...

    src/Control/Lens/Plated.hs:716:0:
         error: detected recursion whilst expanding macro "OVERLAPPING"
         instance OVERLAPPING GPlated a (K1 i a) where
         ^

The reason is recursive macro definition:
    #define OVERLAPPING {-# OVERLAPPING #-}

Fixed by naming thing on the left differently.

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
haasn added a commit that referenced this pull request Jan 29, 2015
Control/Lens/Plated.hs: amend for ghc-7.10
@haasn haasn merged commit 5f4b29a into ekmett:master Jan 29, 2015
@haasn
Copy link
Collaborator

haasn commented Jan 29, 2015

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants