Differences between version 10 and previous revision of Haskell.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 10 | Last edited on Tuesday, December 28, 2004 1:32:52 am | by AristotlePagaltzis | Revert |
Older page: | version 9 | Last edited on Sunday, March 7, 2004 9:26:57 am | by AristotlePagaltzis | Revert |
@@ -1,24 +1,29 @@
-[Haskell | http://www.haskell.org] is pure functional programming language
that employs LazyEvaluation and supports generic or PolymorphicTypes.
+[Haskell | http://www.haskell.org] is a
pure functional ProgrammingLanguage
that employs LazyEvaluation and supports generic or PolymorphicTypes.
-It has some cool concepts like the dot operator. If you remember your calculus, it used the . for functional composition:
so does [Haskell]! This allows you to do something similar to the pipe operator used in shell
scripting.
+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.
-!!!Example
+!!! Example
-
-- sieve: prints the number of prime numbers between 2 and 100000
+<verbatim>
+
-- sieve: prints the number of prime numbers between 2 and 100000
-
sieve :: [
[Int] -> [
[Int]
- sieve [
[] = [
[]
- sieve (h:t) = h : sieve [
[x| x <- t, x `mod` h /= ]
+sieve :: [Int] -> [Int]
+sieve [] = []
+sieve (h:t) = h : sieve [x| x <- t, x `mod` h /= ]
-
main = (putStrLn . show . length . sieve) [
[2..100000]
+main = (putStrLn . show . length . sieve) [2..100000]
+</verbatim>
-!!!Implementations
+!!! Implementations
-;
[HUGS | http://haskell.org/hugs] : __H__askell __U__sers' __G__ofer[1]
__S__ystem. An interpreter that's good for playing around learning [Haskell] (which is what you do with
[Haskell], unless you're serious computer scientist).
-;
[GHC | http://www.haskell.org/ghc/
] : __G__lasglow __H__askell __C__ompiler. A big, optimising compiler for Haskell
.
+[HUGS | http://haskell.org/hugs]::
+
__H__askell __U__sers' __G__ofer __S__ystem.
+
An interpreter that's good for playing around learning [Haskell].
+
(“Gofer” was a subset of
[Haskell], but HUGS now implements full
[Haskell
].)
-----
-
[1
] Gofer was a subset of Haskell
, HUGS now implements full
Haskell.
+[GHC | http://www.haskell.org/ghc/
]::
+ __G__lasglow __H__askell __C__ompiler.
+ A big
, optimising compiler for
Haskell.
--
----
-CategoryProgrammingLanguages, CategoryFunctionalProgrammingLanguages
+----
+Part of
CategoryProgrammingLanguages, CategoryFunctionalProgrammingLanguages