Comments (6)
I forgot to mention but it works when its within another object, another reason why it was so annoying to figure it out. If you move one of those traits with two annotations to the top level of the file, it won't work, IIRC.
from cats-tagless.
Ha, interesting. I guess the two annotations are competing on adding the companion object
from cats-tagless.
yup ran into this a bunch before, real annoying could never figure out a workaround.
from cats-tagless.
But the tests are full of such algebras with two annotations and no companion objects:
https://github.com/typelevel/cats-tagless/blob/master/tests/src/test/scala/cats/tagless/tests/autoFunctorKTests.scala
Could it be something related to incremental compilation?
Can you try to clean and compile again?
from cats-tagless.
Good old bug: scalameta/scalameta#1046, this is to be fixed in scalac (paradise was merged in 2.13)
from cats-tagless.
Would this fix the problem? scala/scala#9555
from cats-tagless.
Related Issues (20)
- Provide method parameter names and values in Instrument HOT 6
- Trouble deriving instances for ApplicativeError/MonadError HOT 2
- [Scala 2] Support dependent method types
- Publish for scalajs 1.0 HOT 3
- Migrate to GitHub Actions
- Scala 3 feature parity HOT 38
- Migrate to sbt-spiewak, drop sbt-catalysts
- Add versions of FunctorK and ApplyK for bi- and tri-functors, with macro derivation HOT 2
- mapK with method name HOT 2
- Generalization of `FunctorK` HOT 6
- Does Aspect need to be a tagless algebra algebra? HOT 6
- Invalid link in docs for `InvariantK` HOT 7
- Support varargs
- Add ContravariantK
- Decide what to do about fullyRefined instances HOT 3
- Create Intellij plugin for macro annotaions HOT 2
- Migrate to mdoc HOT 13
- Example of build.sbt for 2.12/2.13 cross compile? HOT 2
- Derive Apply Typeclass
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cats-tagless.