Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
adampauls committed Mar 17, 2020
1 parent 17c198f commit 827971a
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,7 @@ package object quicklens {
}
}

implicit def optionQuicklensFunctor[A]: QuicklensFunctor[Option, A] with QuicklensGetFunctor[Option, A] =
new QuicklensFunctor[Option, A] with QuicklensGetFunctor[Option, A] {
override def map(fa: Option[A])(f: A => A) = fa.map(f)
override def get(fa: Option[A])(f: A => A) = Some(fa.map(f).get)
}

implicit def optionQuicklensFunctor[A]
: QuicklensFunctor[Option, A] with QuicklensSingleAtFunctor[Option, A] =
implicit def optionQuicklensFunctor[A]: QuicklensFunctor[Option, A] with QuicklensSingleAtFunctor[Option, A] =
new QuicklensFunctor[Option, A] with QuicklensSingleAt[Option, A] {
override def map(fa: Option[A])(f: A => A) = fa.map(f)
override def at(fa: Option[A])(f: A => A) = Some(fa.map(f).get)
Expand Down

0 comments on commit 827971a

Please sign in to comment.