|
|
|
|
|
by fakedrake
3876 days ago
|
|
I assumed that `Int` was the sequence index of the Edit, not the line number. The line position, which is not necessarily the line number, it might be contextual, is encoded in `a`. In fact the way I read the article was that `a` was a file, so you can have operations: - Insert Int File == "create file" - Delete Int File == "delete file" - Replace Int File == "patch file" Removing and Inserting a file each time it changes, while technically correct is probably not what you want. The nice thing about what Liam proposes (and type classes in general) is that it doesn't matter what we each interpret `a` to be. |
|