purescript /purescript

A strongly-typed language that compiles to JavaScript

★ 8,923⑂ 574👁 148⑃ 2,203● 2,376▤ 209
HaskellNOASSERTIONCreated 2013-09-30www.purescript.org
下载:v0.15.17v0.15.17 ↓0.15.172026-11-13
+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

Latest release

v0.15.17 v0.15.17 2026-11-13
New 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

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON