Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

`main` is the entry point of the program. Its type is `IO ()`. It is a warning to omit a type signature in a top level definition, so in a normal program you would have a `main :: IO ()` type definition. The `IO` allows any kind of effect.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: