Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
decioferreira committed Sep 25, 2024
1 parent dc9c67b commit eb2ab23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions compiler/src/Reporting/Doc.elm
Original file line number Diff line number Diff line change
Expand Up @@ -292,31 +292,31 @@ toAnsi handle doc =
colorChar =
case color of
Just Black ->
"\u{001B}[30m"
"\u{001B}[90m"

Just Red ->
"\u{001B}[31m"
"\u{001B}[91m"

Just Green ->
"\u{001B}[32m"
"\u{001B}[92m"

Just Yellow ->
"\u{001B}[33m"
"\u{001B}[93m"

Just Blue ->
"\u{001B}[34m"
"\u{001B}[94m"

Just Cyan ->
"\u{001B}[36m"
"\u{001B}[96m"

Just DullRed ->
"\u{001B}[91m"
"\u{001B}[31m"

Just DullYellow ->
"\u{001B}[93m"
"\u{001B}[33m"

Just DullCyan ->
"\u{001B}[96m"
"\u{001B}[36m"

Nothing ->
""
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/Reporting/Error.elm
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ toJson { name, absolutePath, source, error } =
toReports (Code.toSource source) error
in
E.object
[ ( "absolutePath", E.string absolutePath )
[ ( "path", E.string absolutePath )
, ( "name", E.string name )
, ( "problems", E.list reportToJson (NE.toList reports) )
]
Expand Down
4 changes: 2 additions & 2 deletions src/Utils/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,8 @@ bsReadFile _ =


builderHPutBuilder : IO.Handle -> String -> IO ()
builderHPutBuilder _ _ =
Debug.todo "builderHPutBuilder"
builderHPutBuilder handle str =
IO.make (Decode.succeed ()) (IO.HPutStr handle str)



Expand Down

0 comments on commit eb2ab23

Please sign in to comment.