Add some additional compile time checks with macros.
I welcome all patches, pull requests, Issues, and Comments!
If you use this libray, I'd love to hear about it!
If you are using maven, the easiest way to use this project is to add
<dependency> <groupId>scala-validations</groupId> <artifactId>scala-validations</artifactId> <version>0.1.0-SNAPSHOT</version> </dependency>
<repositories> <repository> <id>tptpParser-mvn-repo</id> <url>https://raw.github.com/marklemay/scala-validations/mvn-repo/</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> </repositories>
to your pom.xml. Right now I use the poor man's repo method. If there's enough intrest, I'll push to Maven Central.
See the example project for usage.
You can always postpone the compile time checks to runtime by changing the import from
This will remove the custom compile time warnings and errors.
You may need to turn off "implicit underlining" in eclipse scala ide to see the error underlines in all their glory.
I would love contributions!
There are 2 maven project in this repo
- scala-validations the main project that contains the macros.
- scala-validations-examples that contains usage examples.
The project should work fine with the scala 2.11 IDE without any further configuration.
- blog about methodology
- sbt testing
- sbt documentation
- push to maven central if there's enough intresr