Skip to content

replace scalacheck-shapeless with scalacheck-magnolia for insane compilation speed up

License

Notifications You must be signed in to change notification settings

etaty/scalacheck-magnolia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalacheck Magnolia

Generation of arbitrary case classes / ADTs instances with Scalacheck and Magnolia!

Why?

Because scalacheck-shapeless is good but too slow. Also this is much smaller and understandable, thanks to Magnolia!

Install

Just copy the files in src/main/scala to your project. It's 2 files, less than 60 lines in total! And you don't have to care about updating Scalacheck or Magnolia

How to use it?

import scalacheckmagnolia.MagnoliaArbitrary._
import org.scalacheck._

case class Example(a: String, b: Long)

val arbitraryExample = implicitly[Arbitrary[Example]]

println(arbitraryExample.arbitrary.sample.get)

Links

About

replace scalacheck-shapeless with scalacheck-magnolia for insane compilation speed up

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages