We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f567e12 commit d0548f3Copy full SHA for d0548f3
elm/Main/Update/BreakFile.elm
@@ -29,6 +29,12 @@ run ({ filepath, fileContent } as config) =
29
-- |> Result.mapError (Debug.log "error")
30
|> Result.map (randomlySelectFileChangesFromParsedSegments config)
31
|> Result.toMaybe
32
+ |> Maybe.map
33
+ (\{ newFileContent, changes } ->
34
+ { newFileContent = newFileContent
35
+ , changes = List.sortBy .lineNumber changes
36
+ }
37
+ )
38
39
40
type alias BreakResult =
0 commit comments