File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ A tool to visually compare Scala data structures with out of the box support for
99### Usage
1010
1111``` scala
12- println( DiffShow .diff( before, after ).string )
12+ println( ai.x.diff. DiffShow .diff( before, after ).string )
1313```
1414
1515#### Output
@@ -35,7 +35,11 @@ val after: Foo = Foo(
3535)
3636```
3737
38- ### SBT Dependency
38+ ### Helpful tips
39+
40+ ``` scala
41+ import ai .x .diff ._
42+ ```
3943
4044#### Custom comparison
4145
@@ -60,7 +64,7 @@ def ignore[T] = new DiffShow[T] {
6064 def diff ( left : T , right : T ) = Identical ( " <not compared>" )
6165 override def diffable ( left : T , right : T ) = true
6266}
63- implicit def LocationIdShow = ignore[LocationId ]
67+ implicit def LocationIdShow : DiffShow [ LocationId ] = ignore[LocationId ]
6468```
6569
6670#### Influence comparison in collections
@@ -73,7 +77,7 @@ implicit def PersonDiffShow[L <: HList](
7377 implicit
7478 labelled : LabelledGeneric .Aux [Person , L ],
7579 hlistShow : Lazy [DiffShowFields [L ]]
76- ) = new CaseClassDiffShow [Person , L ] {
80+ ): DiffShow [ Person ] = new CaseClassDiffShow [Person , L ] {
7781 override def diffable ( left : Person , right : Person ) = left._id === right._id
7882}
7983```
You can’t perform that action at this time.
0 commit comments