Skip to content

devalot/hsintro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to Haskell

Introduction to Haskell

Goals

  1. What is Haskell?

  2. Why is Haskell hard to learn for programmers?

  3. Short case study of why you should be using Haskell.

What is Haskell?

Haskell, a general purpose, purely-functional programming language.

Slides: banners/haskell.txt.

Why is Haskell Hard to Learn for Programmers?

Haskell approaches programming from a completely different perspective than most programming languages. While imperative programming languages provide abstractions over instructions executing on the CPU, Haskell provides abstractions over concepts from mathematics and computer science.

It's the responsibility of the compiler to translate our formula-looking Haskell code into imperative instructions that run on the CPU.

Language comparisons:

Short Case Study of Why You Should Be Using Haskell

This is just one small example of where Haskell makes a big impact in the quality of the products we create.

  • Null pointers and nil objects are a huge runtime problem in many languages. Don't believe me? Look at this and this.

  • Does it really make sense that nil can be substituted for any other type? Haskell doesn't think so.

  • Haskell doesn't have a null or nil type. Instead there are much more powerful user defined types that serve the same purpose but are completely safe because they don't substitute for other types.

  • This removes an entire class of runtime errors and makes your code compile-time safe. Example code.

More Information

About

Haskell for Programmers (Presentation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published