Haskell: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with "=Introduction= This is my first dip into Haskell, just felt like trying it =Hello World= Here we start with main and strange format but no curly brackets which is good. <syntaxthighlight lang="hs"> main :: IO() main = putStrLn "Hello World" </syntaxthighlight>"
 
No edit summary
Line 3: Line 3:
=Hello World=
=Hello World=
Here we start with main and strange format but no curly brackets which is good.
Here we start with main and strange format but no curly brackets which is good.
<syntaxthighlight lang="hs">
<syntaxhighlight lang="hs">
main :: IO()
main :: IO()
main = putStrLn "Hello World"
main = putStrLn "Hello World"
</syntaxthighlight>
</syntaxhighlight>

Revision as of 21:08, 10 February 2025

Introduction

This is my first dip into Haskell, just felt like trying it

Hello World

Here we start with main and strange format but no curly brackets which is good.

main :: IO()
main = putStrLn "Hello World"