text‹
The idea of a term‹main :: unit io› function is that, upon start of your program, you will be
handed a value of type 🍋‹🪙›. You can pass this world through your code and modify it.
Be careful with the 🍋‹🪙›, it's the only one we have. ›
text‹The main function, defined in Isabelle. It should have the right type in Haskell.› definition main :: "unit io"where "main ≡ do { _ ← println (STR ''Hello World! What is your name?''); name ← getLine; println (STR ''Hello, '' + name + STR ''!'') }"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.