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

Fix link to Make.java in Readme #66

Merged
merged 1 commit into from
Apr 14, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,7 @@ public abstract class Term<T> {
For GADT you will need to add a dependency on [derive4j/hkt](https://github.com/derive4j/hkt) which provides `TypeEq<A, B>`: a witness of the equality of two types, `A` and `B`.

# DRY annotation configuration
By default the `@Data` annotation triggers the generation of [all of what is available]
(annotation/src/main/java/org/derive4j/Make.java#L22) in a file which name is the english plural of the annotated class. But you may want to restrict the scope of what is generated or the name of the file, and you usually want all you ADTs to use the same flavour. You may even not like the name of the annotation because it clashes with another framework...
By default the `@Data` annotation triggers the generation of [all of what is available](/annotation/src/main/java/org/derive4j/Make.java#L22) in a file which name is the english plural of the annotated class. But you may want to restrict the scope of what is generated or the name of the file, and you usually want all you ADTs to use the same flavour. You may even not like the name of the annotation because it clashes with another framework...

For example, let's say that you want to always use the `FJ` flavour (FunctionalJava), make the generated code package private in a class suffixed by `Impl` and only generate the pattern matching syntax and the constructors. Then all you have to do is to create the following annotation:
```java
Expand Down