Haskell files are just text files.
While C style languages are imperative (do as I say NOW), Haskell and others are less so. Surely you have heard that Haskell is a lazy language.
Because of this it takes a different sort of thinking, and thats useful in itself to develop. For instance, haskells infinite lists...
Haskell doesnt care that you do that until you actually ask it to do something with the list, at which point you had better put some limits on it.
so you are trusting haskell to do what you mean rather than directly what you say.
So generally when someone is interested in haskell, they already have a good deal of experience in programming. It doesnt mean that haskell is hard(its not), but that the audience the tutorials are written for dont need the tiny steps typically found in tutorials.
Have you seen this tutorial? it helped me a lot.
http://learnyouahaskell.com/chapters
and this one?
http://www.lisperati.com/haskell/
Also, if you learn python, haskell will make more sense. You can learn list comprehensions there. For example, in python
Code:
answer = [x*x for x in numlist if x > 6]
is the same as
Code:
answer = [x*x | x <- numlist, x > 6]
in haskell.
Bookmarks