PureScript

PureScript
ParadigmFunctional
Designed byPhil Freeman
First appeared2013
Stable release
0.15.15 Edit this on Wikidata / 7 February 2024; 9 months ago (7 February 2024)
Typing disciplineInferred, static, strong
LicenseBSD[1]
Filename extensions.purs
Websitewww.purescript.org Edit this at Wikidata
Influenced by
Haskell, JavaScript

PureScript is a strongly-typed, purely-functional programming language that transpiles to JavaScript,[2] C++11,[3] Erlang,[4] and Go.[5] It can be used to develop web applications, server side apps, and also desktop applications with use of Electron or via C++11 and Go compilers with suitable libraries. Its syntax is mostly comparable to that of Haskell. In addition, it introduces row polymorphism and extensible records.[6] Also, contrary to Haskell, the PureScript language is defined as having a strict evaluation strategy,[7] although there are non-conforming back-ends which implement a lazy evaluation strategy.[8]

  1. ^ "purescript/purescript". GitHub. 3 June 2022.
  2. ^ "PureScript to JavaScript transpiler". GitHub. Retrieved 2023-01-22.
  3. ^ "PureScript to C++11 transpiler". GitHub. Retrieved 2023-01-22.
  4. ^ purerl - the PureScript Erlang backend, purerl, 2023-09-04, retrieved 2023-09-05
  5. ^ "PureScript to Go transpiler". GitHub. Retrieved 2023-01-22.
  6. ^ "PureScript". purescript.org. Retrieved 2019-03-14.
  7. ^ purescript/documentation, PureScript, 2023-02-19, retrieved 2023-02-20
  8. ^ Alternative backends, PureScript, 2023-02-19, retrieved 2023-02-20