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

Build failure with GHC 9.4 #57

Closed
andreasabel opened this issue Aug 10, 2022 · 3 comments
Closed

Build failure with GHC 9.4 #57

andreasabel opened this issue Aug 10, 2022 · 3 comments
Labels
compat Back and forth

Comments

@andreasabel
Copy link
Collaborator

Build is broken with GHC 9.4.1:

[14 of 19] Compiling Generic.Data.Internal.Generically ( src/Generic/Data/Internal/Generically.hs, /Users/abel/bin/src/generic-data/dist-newstyle/build/x86_64-osx/ghc-9.4.1/generic-data-0.9.2.1/build/Generic/Data/Internal/Generically.o, /Users/abel/bin/src/generic-data/dist-newstyle/build/x86_64-osx/ghc-9.4.1/generic-data-0.9.2.1/build/Generic/Data/Internal/Generically.dyn_o )

src/Generic/Data/Internal/Generically.hs:73:32: error:
    Ambiguous occurrence ‘Generically’
    It could refer to
       either ‘GHC.Generics.Generically’,
              imported from ‘GHC.Generics’ at src/Generic/Data/Internal/Generically.hs:24:1-19
           or ‘Generic.Data.Internal.Generically.Generically’,
              defined at src/Generic/Data/Internal/Generically.hs:71:1
   |
73 | instance Generic a => Generic (Generically a) where
   |                                ^^^^^^^^^^^

and many more of these...

@andreasabel
Copy link
Collaborator Author

@Lysxia, see https://downloads.haskell.org/~ghc/9.4.1/docs/users_guide/9.4.1-notes.html#base-library

GHC.Generics now provides a set of newtypes, Generically and Generically1, for deriving generic instances via :lang-ext:DerivingVia. Generically instances include Semigroup and Monoid.

@Lysxia Lysxia added the compat Back and forth label Aug 12, 2022
@Lysxia
Copy link
Owner

Lysxia commented Aug 12, 2022

Thanks for the report. #58 should fix this. Will release over the week end.

@Lysxia
Copy link
Owner

Lysxia commented Aug 14, 2022

Released: 1.0.0.0

Also revised base upper bounds in previous versions

@Lysxia Lysxia closed this as completed Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat Back and forth
Projects
None yet
Development

No branches or pull requests

2 participants