MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/purescript/comments/k78y40/what_i_do_wrong_with_example/gepibo9/
r/purescript • u/[deleted] • Dec 05 '20
4 comments sorted by
View all comments
Show parent comment
6
from what I see you don't have a main, my best guess would be
main :: Effect Unit main = log $ showPerson examplePerson
(you will have to import stuff but the editor should help)
if you have problem you can always go into a fresh directory and do spago init which should include a main
spago init
main
1 u/[deleted] Dec 05 '20 Thank you! It works now!
1
Thank you! It works now!
View all comments
Show parent comment
6
u/CKoenig Dec 05 '20
from what I see you don't have a main, my best guess would be
(you will have to import stuff but the editor should help)
if you have problem you can always go into a fresh directory and do
spago initwhich should include amain