Skip to content

Basic Haskell Syntax

When switching between languages such as C, Java or Python, there are clearly syntactic differences, but they also have a lot in common. Haskell's syntax is a lot different from those languages you may be familiar with. At the same time, syntactically, Haskell is a quite simple language. There aren't all that many keywords. I'll go over what you absolutely need to know to get started here and introduce additional aspects of Haskell syntax as needed later in the book.