luke-clifton / generic-monoid Goto Github PK
View Code? Open in Web Editor NEWDeriving Semigroup and Monoid instances for your product types
License: BSD 3-Clause "New" or "Revised" License
Deriving Semigroup and Monoid instances for your product types
License: BSD 3-Clause "New" or "Revised" License
I pasted the example into a file that I was working with:
data X = X [Int] String
deriving (Generic, Show)
deriving Semigroup via GenericSemigroup X
I get the following error:
src/Control/Monad/Bayes/Traced/Common.hs:63:12: error:
• Couldn't match representation of type ‘GenericSemigroup X’
with that of ‘X’
arising from the coercion of the method ‘<>’
from type ‘GenericSemigroup X
-> GenericSemigroup X -> GenericSemigroup X’
to type ‘X -> X -> X’
The data constructor ‘Data.Semigroup.Generic.GenericSemigroup’
of newtype ‘GenericSemigroup’ is not in scope
• When deriving the instance for (Semigroup X)
|
63 | deriving Semigroup via GenericSemigroup X
I'm using GHC 9.2.4, possibly something has changed in the meantime?
Hello,
Would it be possible to make a Hackage revision to loosen the bounds on base
to include base-4.18
? This would allow to build generic-monoid
with GHC-9.4.
generic-monoid
is the only package preventing me from compiling tmp-postgres
using GHC 9.4.
Thank you!
This is a good and useful package that I’m using in production. Could it be added to a Stackage LTS release?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.