aboutsummaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Permit derivations of products when `dispatch` not definedJon Pretty2018-06-061-1/+14
|
* Remove explicit Show.gen imports from testsGeorgi Krastev2018-04-141-8/+5
| | | | | These imports were changing the priority of implicits which means the tests were not accurate.
* Updated version numbers to 0.7.1Jon Pretty2018-02-251-1/+1
|
* Added copyright notice on every fileJon Pretty2018-02-181-0/+14
|
* Added top-level annotation captureKevin Wright2018-02-011-2/+2
|
* Added annotation capture to paramsKevin Wright2018-02-011-6/+17
| | | | | | | Added test for annotation capture Updated to lamdafied syntax for SAM type construction Minor changes to permit compilation under JDK 9 Added Kevin Wright as a contributor
* Made it compile under Java 9Kevin Wright2018-01-261-1/+6
|
* Run Scala-fmtJon Pretty2018-01-071-21/+14
|
* Rework compile time stackGeorgi Krastev2018-01-061-35/+66
| | | | | | * Use a classic mutable stack (a case class without lenses is cumbersome) * Add typeclass constructor to stack frames, cache and error messages * Clean-up usage of `Option`s
* Fix regression introduced by move to `patchedCompanionRef`Mathias2018-01-051-0/+4
|
* Change `typeName: String` to `typeName: magnolia.TypeName` [BREAKING!]Mathias2018-01-041-5/+5
|
* Merge branch 'companion-ref' of https://github.com/joroKr21/magnolia into ↵Jon Pretty2017-12-291-13/+27
|\ | | | | | | joroKr21-companion-ref
| * Move pathedCompanionRef to a GlobalUtil objectGeorgi Krastev2017-12-131-12/+27
| | | | | | | | | | | | | | That method is a workaround for a bug. It doesn't belong in the core Magnolia macro. Also: * Use `patchedCompanionRef` consistently * Add a test for the workaround (method-local classes)
* | Add `CaseClass.rawConstruct` and new `Patcher` exampleMathias2017-12-141-1/+40
|/
* Add test for low-priority implicits when chainedGeorgi Krastev2017-12-041-0/+7
|
* Merge branch 'patch-1' of https://github.com/shadaj/magnoliaJon Pretty2017-11-301-1/+16
|\
| * Remove extra line added to tests.scalaShadaj Laddad2017-11-301-1/+0
| |
| * Use patchedCompanionSymbolOf from Shapeless to get companion objectShadaj Laddad2017-11-301-4/+9
| | | | | | | | As suggested by @joroKr21
| * Merge branch 'master' into patch-1Jon Pretty2017-11-301-2/+43
| |\
| * | Actually instantiate the ParentClass so unit tests runShadaj Laddad2017-11-291-0/+2
| | |
| * | Add unit tests and fix behavior with default parametersShadaj Laddad2017-11-211-0/+8
| | |
* | | Merge branch 'master' into existentialsJon Pretty2017-11-301-3/+31
|\ \ \
| * | | typeName is now the full name of the type, in original caseJon Pretty2017-11-301-1/+13
| | |/ | |/|
| * | Add support for repeated (vararg) parametersGeorgi Krastev2017-11-291-2/+16
| | | | | | | | | | | | Added a `Param.repeated` flag to `interface`.
* | | Existentially abstract unbound subtype parametersGeorgi Krastev2017-11-291-0/+23
|/ / | | | | | | | | | | | | That happens when the subtype of a sealed trait has more type parameters than its parent. When those extra type parameters are covariant they are replaced by their upper bounds, otherwise they are existentially quantified.
* | Merge pull request #48 from leandrob13/fix/errorWithAlternativeApplyMethodsJon Pretty2017-11-291-0/+15
|\ \ | | | | | | Fixed derivation error when companion has alternative apply methods
| * | Fixed error that ocurred when the companion object of a case class has ↵Leandro Bolivar2017-11-251-0/+15
| |/ | | | | | | alternative apply methods
* / Avoid instantiating Unit when producing error stackRahul Goma Phulore2017-11-261-0/+10
|/ | | | Fixes https://github.com/propensive/magnolia/issues/41.
* Include warnings if `combine` or `dispatch` methods are missingJon Pretty2017-11-101-1/+1
|
* Include support for decomposing AnyVals, like case classesJon Pretty2017-11-101-0/+6
|
* Decode typeNames and labelsJon Pretty2017-11-101-0/+6
|
* ScalafmtJon Pretty2017-11-101-1/+3
|
* More build cleanup, and a couple of extra testsJon Pretty2017-11-101-0/+38
|
* Upgrade to SBT 1.0 and include testing binariesv0.5.0Jon Pretty2017-11-099-8/+10
|
* Added better scaladocs and provide default valuesJon Pretty2017-11-081-12/+18
|
* API improvements and better examplesJon Pretty2017-11-072-21/+41
|
* Deduplication within case class parameter typeclassesJon Pretty2017-11-051-2/+0
|
* Start of performance-enhancing refactoringJon Pretty2017-11-042-1/+5
|
* Test fixes and other miscellaneous changesJon Pretty2017-11-032-5/+12
|
* Support for GADTs (including recursive ones)Jon Pretty2017-11-011-11/+11
| | | | Some tests still failing, but macros are working
* Support nontrivial type constructorsJon Pretty2017-10-311-7/+7
|
* Support for case objectsJon Pretty2017-10-301-10/+13
|
* All variants now derivingJon Pretty2017-10-301-8/+15
| | | | Though there's a stack overflow when trying to derive a `Decoder`.
* Derivation working for Show and EqJon Pretty2017-10-302-24/+81
|
* Made a nicer API for inclusionJon Pretty2017-06-301-3/+6
|
* Tidied up and made it compile and runJon Pretty2017-06-232-27/+7
|
* Merge branch 'master' into cats-contravariant-exampleJon Pretty2017-06-221-2/+12
|\
| * Use case clauses and switch statement instead of is/asInstanceOfJon Pretty2017-06-221-2/+4
| |
| * bring back support for 1-arg type classes; now both Show and Eq are supportedPiotr Krzemiński2017-06-211-4/+4
| |
| * initial support for 2-arg contravariant derivations; works for simple Eq ↵Piotr Krzemiński2017-06-211-4/+12
| | | | | | | | typeclass, still wip