style: scala format
This commit is contained in:
@@ -104,7 +104,9 @@ def compile(
|
||||
val asmLines = backend(typedProg)
|
||||
val backendEnd = System.nanoTime()
|
||||
writer.writeTo(asmLines, outputPath) *>
|
||||
logAction(s"Backend time (${filePath.toRealPath()}): ${(backendEnd - backendStart).toFloat / 1e6} ms") *>
|
||||
logAction(
|
||||
s"Backend time (${filePath.toRealPath()}): ${(backendEnd - backendStart).toFloat / 1e6} ms"
|
||||
) *>
|
||||
IO.blocking(println(s"Success: ${outputPath.toRealPath()}"))
|
||||
|
||||
def processProgram(contents: String, file: File, outDir: Path): IO[Int] =
|
||||
@@ -112,7 +114,9 @@ def compile(
|
||||
for {
|
||||
frontendResult <- frontend(contents, file)
|
||||
frontendEnd = System.nanoTime()
|
||||
_ <- logAction(s"Frontend time (${filePath.toRealPath()}): ${(frontendEnd - frontendStart).toFloat / 1e6} ms")
|
||||
_ <- logAction(
|
||||
s"Frontend time (${filePath.toRealPath()}): ${(frontendEnd - frontendStart).toFloat / 1e6} ms"
|
||||
)
|
||||
res <- frontendResult match {
|
||||
case Left(errors) =>
|
||||
val code = errors.map(err => err.exitCode).toList.min
|
||||
|
||||
Reference in New Issue
Block a user