rename main file and executable in CSV example

This commit is contained in:
Brian Carroll 2022-09-25 22:12:30 +01:00
parent a3c1325edf
commit 2341c01ab3
No known key found for this signature in database
GPG Key ID: 9CF4E3BF9C4722C7
2 changed files with 5 additions and 3 deletions

View File

@ -1,2 +1 @@
main
countdown
parse-movies-csv

View File

@ -1,9 +1,12 @@
app "main"
app "parse-movies-csv"
packages { pf: "platform/main.roc" }
imports [Parser.Core.{Parser, map, apply}, Parser.Str.{RawStr}, Parser.CSV.{CSV, record, field, string, nat}]
provides [main] to pf
input : Str
input = "Airplane!,1980,\"Robert Hays,Julie Hagerty\"\r\nCaddyshack,1980,\"Chevy Chase,Rodney Dangerfield,Ted Knight,Michael O'Keefe,Bill Murray\""
main : Str
main =
when Parser.CSV.parseStr movieInfoParser input is
Ok movies ->