1 Introduction to Functional Programming
1 Introduction to Functional Programming
HASKELL
Functional Programming CUCE211
Topics
• About Haskell
• Characteristics of Haskell
• Haskell Features
About Haskell
• Purely functional programming language.
• Functions have no side-effects. Each function fulfils its obligation and returns a
result.
• Lazy evaluation: functions are executed only when required by the user.
• Haskell deals well with infinite lists and infinite structures
Some Haskell Features
• Static typing
• Polymorphisms
• Layout-sensitivity
• Automatic currying
Some Haskell Features (1)
• Garbage collector - Garbage collection moves responsibility
for many memory issues from the developer into the
language's runtime,