Penguin
Annotated edit history of Haskell version 11, including all changes. View license author blame.
Rev Author # Line
10 AristotlePagaltzis 1 [Haskell | http://www.haskell.org] is a pure functional ProgrammingLanguage that employs LazyEvaluation and supports generic or PolymorphicTypes.
1 SamJansen 2
10 AristotlePagaltzis 3 It has some cool concepts, like the dot operator. If you remember your calculus, it used the . for functional composition — and so does [Haskell]! This allows you to do something similar to the pipe operator used in [Shell] scripting.
1 SamJansen 4
10 AristotlePagaltzis 5 !!! Example
6 GlynWebster 6
10 AristotlePagaltzis 7 <verbatim>
8 -- sieve: prints the number of prime numbers between 2 and 100000
6 GlynWebster 9
10 AristotlePagaltzis 10 sieve :: [Int] -> [Int]
11 sieve [] = []
12 sieve (h:t) = h : sieve [x| x <- t, x `mod` h /= 0]
6 GlynWebster 13
11 FirstnameLastname 14 main = (print . length . sieve) [2..100000]
10 AristotlePagaltzis 15 </verbatim>
4 GlynWebster 16
10 AristotlePagaltzis 17 !!! Implementations
4 GlynWebster 18
10 AristotlePagaltzis 19 [HUGS | http://haskell.org/hugs]::
20 __H__askell __U__sers' __G__ofer __S__ystem.
21 An interpreter that's good for playing around learning [Haskell].
22 (“Gofer” was a subset of [Haskell], but HUGS now implements full [Haskell].)
4 GlynWebster 23
10 AristotlePagaltzis 24 [GHC | http://www.haskell.org/ghc/]::
25 __G__lasglow __H__askell __C__ompiler.
26 A big, optimising compiler for Haskell.
7 GerwinVanDeSteeg 27
10 AristotlePagaltzis 28 ----
29 Part of CategoryProgrammingLanguages, CategoryFunctionalProgrammingLanguages