Skip to content

Commit

Permalink
add Arbitrary[Endomorphic[F, A]] in ScalazArbitrary
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Nov 19, 2016
1 parent 49d0fbe commit cf3e091
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -217,6 +217,9 @@ object ScalazArbitrary extends ScalazArbitraryPlatform {
implicit def endoArb[A](implicit A: Arbitrary[A => A]): Arbitrary[Endo[A]] =
Functor[Arbitrary].map(A)(Endo.endo)

implicit def endomorphicArbitrary[F[_, _], A](implicit F: Arbitrary[F[A, A]]): Arbitrary[Endomorphic[F, A]] =
Functor[Arbitrary].map(F)(Endomorphic[F, A](_))

implicit def EphemeralStreamArbitrary[A : Arbitrary] =
Functor[Arbitrary].map(arb[Stream[A]])(EphemeralStream.fromStream[A](_))

Expand Down

0 comments on commit cf3e091

Please sign in to comment.