ਪੈਰਾਡਾਈਮ | functional, lazy/non-strict, modular | ||||||||
---|---|---|---|---|---|---|---|---|---|
ਡਿਜ਼ਾਇਨ-ਕਰਤਾ | Lennart Augustsson, Dave Barton, Brian Boutel, Warren Burton, Joseph Fasel, Kevin Hammond, Ralf Hinze, Paul Hudak, John Hughes, Thomas Johnsson, Mark Jones, Simon Peyton Jones, John Launchbury, Erik Meijer, John Peterson, Alastair Reid, Colin Runciman, Philip Wadler | ||||||||
ਸਾਹਮਣੇ ਆਈ | 1990 | ||||||||
Haskell 2010 / ਜੁਲਾਈ 2010 | |||||||||
Haskell 2014 announced | |||||||||
static, strong, inferred | |||||||||
ਆਪਰੇਟਿੰਗ ਸਿਸਟਮ | Cross-platform | ||||||||
.hs , .lhs | |||||||||
ਵੈੱਬਸਾਈਟ | haskell | ||||||||
|
ਹੈਸਕਲ (ਅੰਗਰੇਜ਼ੀ: Haskell) ਇੱਕ ਪ੍ਰਮਾਣਿਕ੍ਰਿਤ, ਆਮ-ਮਕਸਦ ਫੰਕਸ਼ਨਲ ਪ੍ਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ ਹੈ। ਇਸ ਦਾ ਨਾਮ ਹੈਸਕਲ ਕਰੀ ਨਾਮ ਦੇ ਦਾਰਸ਼ਨਿਕ ਤੋਂ ਰਖਿਆ ਗਿਆ ਹੈ। ਮਈ 2016 ਤੋਂ ਇੱਕ ਗਰੁੱਪ ਅਗਲੀ ਵਰਜਨ, Haskell 2020,ਉੱਪਰ ਕੰਮ ਕਰ ਰਿਹਾ ਹੈ।
ਹੇਠ ਦਿੱਤਾ ਹੈਲੋ ਵਿਸ਼ਵ ਪ੍ਰੋਗਰਾਮ ਹੈਸਕਲ ਵਿੱਚ ਲਿਖਿਆ ਗਿਆ ਹੈ:[because 1]
module Main where
main:: IO ()
main = putStrLn "Hello, World!"
ਫਿਬੋਨਾਚੀ ਨੰਬਰ ਦੀ ਇੱਕ ਕੁਸ਼ਲ ਤਾਮੀਲ ਇੱਕ ਅਨੰਤ ਸੂਚੀ ਦੇ ਤੌਰ ਤੇ ਹੇਠ ਦਿਤੀ ਗਈ ਹੈ:
-- Type annotation (optional)
fib:: Int -> Integer
-- With self-referencing data
fib n = fibs !! n
where fibs = 0: scanl (+) 1 fibs
-- 0,1,1,2,3,5,...
-- Same, coded directly
fib n = fibs !! n
where fibs = 0: 1: next fibs
next (a: t@(b:_)) = (a+b): next t
-- Similar idea, using zipWith
fib n = fibs !! n
where fibs = 0: 1: zipWith (+) fibs (tail fibs)
-- Using a generator function
fib n = fibs (0,1) !! n
where fibs (a,b) = a: fibs (b,a+b)
ਹੈਸਕਲ ਵੈੱਬ ਫਰੇਮਵਰਕ ਮੌਜੂਦ ਹਨ, ਇਹਨਾਂ ਵਿਚ ਸ਼ਾਮਲ ਹਨ:
{{cite journal}}
: Cite journal requires |journal=
(help); Unknown parameter |deadurl=
ignored (|url-status=
suggested) (help) Archived 10 February 2012 at the Wayback Machine.
{{cite web}}
: Unknown parameter |dead-url=
ignored (|url-status=
suggested) (help) Archived 16 June 2012 at the Wayback Machine.
{{cite news}}
: CS1 maint: location (link)
{{cite news}}
: Unknown parameter |dead-url=
ignored (|url-status=
suggested) (help) Archived 10 February 2012 at the Wayback Machine.
F# also draws from Haskell particularly with regard to two advanced language features called sequence expressions and workflows.
{{cite web}}
: Unknown parameter |dead-url=
ignored (|url-status=
suggested) (help) Archived 21 January 2012 at the Wayback Machine.
The Swift language is the product of tireless effort from a team of language experts, documentation gurus, compiler optimization ninjas, and an incredibly important internal dogfooding group who provided feedback to help refine and battle-test ideas. Of course, it also greatly benefited from the experiences hard-won by many other languages in the field, drawing ideas from Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and far too many others to list.
{{cite book}}
: Invalid |ref=harv
(help)Haskell 98 Language and Libraries: The Revised Report. Cambridge University Press. ISBN 0521826144. {{cite book}}
: Invalid |ref=harv
(help)Haskell 2010 Language Report (PDF). Haskell.org. {{cite book}}
: External link in |postscript=
(help)CS1 maint: postscript (link){{cite journal}}
: CS1 maint: postscript (link)Reader (13): 17–68 {{cite journal}}
: Invalid |ref=harv
(help)"A History of Haskell: Being Lazy with Class" (PDF). Proceedings of the third ACM SIGPLAN conference on History of programming languages (HOPL III): 12–1–55. doi:10.1145/1238844.1238856. ISBN 978-1-59593-766-7.