Structural Equality By Default (#495)

Co-authored-by: Tim <hello@timsmart.co>
This commit is contained in:
Michael Arnaldi
2025-09-13 10:29:16 +02:00
committed by GitHub
co-authored by Tim
parent b66cf121f6
commit a651533e25
37 changed files with 1817 additions and 700 deletions
@@ -536,13 +536,13 @@ const watchNode = (path: string) =>
switch (event) {
case "rename": {
Effect.runFork(Effect.matchEffect(stat(path), {
onSuccess: (_) => Queue.offer(queue, FileSystem.WatchEventCreate({ path })),
onFailure: (_) => Queue.offer(queue, FileSystem.WatchEventRemove({ path }))
onSuccess: (_) => Queue.offer(queue, { _tag: "Create", path }),
onFailure: (_) => Queue.offer(queue, { _tag: "Remove", path })
}))
return
}
case "change": {
Queue.offerUnsafe(queue, FileSystem.WatchEventUpdate({ path }))
Queue.offerUnsafe(queue, { _tag: "Update", path })
return
}
}