Skip to content

Commit

Permalink
Merge pull request #217 from roc-lang/format-fix
Browse files Browse the repository at this point in the history
fix formatting
  • Loading branch information
Anton-4 authored Nov 8, 2024
2 parents 8e21e3f + aa2f7de commit ec0b098
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
2 changes: 1 addition & 1 deletion examples/Arithmetic/main.roc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ readArgs =

args =
Arg.list {}
|> Task.mapErr! \_ -> InvalidArg
|> Task.mapErr! \_ -> InvalidArg

aResult = List.get args 1 |> Result.try Str.toI32
bResult = List.get args 2 |> Result.try Str.toI32
Expand Down
10 changes: 5 additions & 5 deletions examples/Parser/main.roc
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import parser.String exposing [parseStr, codeunit, anyCodeunit]

main =
many letterParser
|> parseStr inputStr
|> Result.map countLetterAs
|> Result.map \count -> "I counted $(count) letter A's!"
|> Result.withDefault "Ooops, something went wrong parsing"
|> Stdout.line!
|> parseStr inputStr
|> Result.map countLetterAs
|> Result.map \count -> "I counted $(count) letter A's!"
|> Result.withDefault "Ooops, something went wrong parsing"
|> Stdout.line!

Letter : [A, B, C, Other]

Expand Down
34 changes: 15 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec0b098

Please sign in to comment.