Skip to content

Commit

Permalink
make SimpleShow[ImagingChannel] independent, standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Jul 9, 2024
1 parent 1a900b4 commit 9c50476
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ import at.ac.oeaw.imba.gerlich.gerlib.numeric.NonnegativeInt

trait ImagingChannelInstances:
import at.ac.oeaw.imba.gerlich.gerlib.numeric.instances.nonnegativeInt.given
given simpleShowForChannel(using
ev: SimpleShow[NonnegativeInt]
): SimpleShow[ImagingChannel] =
ev.contramap(_.get)
given SimpleShow[ImagingChannel] =
summon[SimpleShow[NonnegativeInt]].contramap(_.get)

0 comments on commit 9c50476

Please sign in to comment.