Skip to content

Commit

Permalink
remove monoid
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 11, 2024
1 parent e2809c8 commit bcc6a66
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package playground.smithyql

import cats.kernel.Monoid
import cats.syntax.all.*
import tsutils.*
import util.chaining.*
Expand All @@ -15,11 +14,6 @@ trait RangeIndex {

object RangeIndex {

given Monoid[RangeIndex] = Monoid.instance(
_ => None,
(a, b) => pos => a.findAtPosition(pos).orElse(b.findAtPosition(pos)),
)

def build(parsed: playground.generated.nodes.SourceFile): RangeIndex = fromRanges {

val root = NodeContext.EmptyPath
Expand Down

0 comments on commit bcc6a66

Please sign in to comment.