background preloader

Try Haskell! An interactive tutorial in your browser

Try Haskell! An interactive tutorial in your browser
Got 5 minutes? Type help to start the tutorial. Or try typing these out and see what happens (click to insert): 23 * 36 or reverse "hello" or foldr (:) [] [1,2,3] or do line <- getLine; putStrLn line or readFile "/welcome" These IO actions are supported in this app. Other cool learning places

http://tryhaskell.org/

Related:  Haskell

Haskell: The Confusing Parts If you’re used to the C family of languages, or the closely related family of “scripting languages,” Haskell’s syntax (mainly) is a bit baffling at first. For some people, it can even seem like it’s sneaking out from under you every time you think you understand it. This is sort of a FAQ for people who are new to Haskell, or scared away by its syntax. Use this as a cheat sheet, not a textbook. Misc. Stuff You Should Know Already

babysteps in using Persistent to interact with PostgreSQL as I mentioned I want to try some real-life Haskell and of course this means using some kind of database. I looked around a bit and found the really great Persistent package from Micheal Snoyman. Not only is this wonderfuly documented – no you get an yesod integration and a online-book(chapter) explaining it for free – thank you Micheal! This post will only detail the setup and installation I had to do on top of my PostgresSQL installation and it’s more or less my notes I wrote along the way (I hope you enjoy this experiment).

A Gentle Introduction to Haskell, Version 98 This is the master HTML version of the Gentle Introduction To Haskell, version 98. Revised June, 2000 by Reuben Thomas. You may download the following: Brief Table of Contents. All code in this tutorial, with additional commentary, is found in the code directory packaged with this tutorial. We suggest that you inspect, run, and modify this code as you read the tutorial. Haskell Haskell is a functional programming language. If you have some programming experience, see the overview to see a bit of how Haskell works and is different from other languages. Haskell is distinct in a few ways: Haskell is a pure functional programming language.

Pointfree Pointfree Style It is very common for functional programmers to write functions as a composition of other functions, never mentioning the actual arguments they will be applied to. For example, compare: with: These functions perform the same operation, however, the former is more compact, and is considered cleaner. Learn Haskell Fast and Hard tl;dr: A very short and dense tutorial for learning Haskell. Thanks to Oleg Taykalo you can find a Russian translation here: Part 1 & Part 2 ; Table of Content Beginning Haskell Before you start About this tutorial This tutorial targets programmers of imperative languages wanting to learn about functional programming in the language Haskell. Haskell Haskell is a functional programming language. If you've programmed before and would like to see a little bit of how Haskell works and is different from other programming languages, see the overview. Haskell is unique in two ways. First, it is a pure functional programming language. If you have a function and you call it twice in two different places with the same arguments then it will return exactly the same value both times.

Related: