purescript /purescript
A strongly-typed language that compiles to JavaScript
★ 8,923⑂ 574👁 148⑃ 2,203● 2,376▤ 209
+0
日增长
8,923
stars
574
forks
148
watchers
2,203
prs
2,376
issues
209
releases
README
A small strongly typed programming language with expressive types that compiles to JavaScript, written in and inspired by Haskell. Language info - PureScript home - Releases & changelog - Contributing to PureScript Resources - PureScript book - Documentation - Try PureScript - Pursuit Package Index Help! Community Spaces The following spaces are governed by the PureScript Community Code of Conduct. The majority of PureScript users use these spaces to discuss and collaborate on PureScript-related topics: - PureScript Discord - PureScript Discourse Unaffiliated Spaces Some PureScript users also collaborate in the below spaces. These do not fall under the code of conduct linked above. They may have no code of conduct or one very different than the one linked above. - PureScript Matrix - PureScript on StackOverflow - The purescript channel on Libera.Chat
Top issues
#3493Make the compiler package aware59 comments · 2018-12-20#2437Require module names to only be unique per package59 comments · 2016-11-18#2980Use Math.imul(a, b) instead of a * b | 058 comments · 2017-07-09#3662Consider changing `Char` to represent a code point rather than a UTF-16 code unit55 comments · 2019-06-01#4020Proposal: Replace data structures with tagged arrays53 comments · 2021-03-05#3596Constraints and overlapping instances43 comments · 2019-04-09#3580Proposal: Named functional dependencies33 comments · 2019-03-29#1801Incorrect error/warning position ranges32 comments · 2016-01-07
Latest release
v0.15.17 v0.15.17 2026-11-13New features
Add attached derive clauses to data and newtype declarations (4594 by @i-am-the-slime).
Derivable instances can now be declared directly after a type declaration:
purescript
data Color = Red | Green | Blue
derive (Eq, Ord)
newtype Name = Name String
derive (Eq, Ord)
data Box a = Empty | Full a
derive (Functor)
Attached clauses support the compiler’s built-in deriving mechanisms and can be used alongside standalone derive instance declarations. They do not support derive newtype.
Bugfixes
Keep inlined Data.Int.Bits.zshr res