Need advice about which tool to choose?Ask the StackShare community!

Elm

568
624
+ 1
284
PureScript

44
51
+ 1
6
Add tool

Elm vs PureScript: What are the differences?

What is Elm? A type inferred, functional reactive language that compiles to HTML, CSS, and JavaScript. Writing HTML apps is super easy with elm-lang/html. Not only does it render extremely fast, it also quietly guides you towards well-architected code.

What is PureScript? A strongly-typed language that compiles to Javascript. A small strongly typed programming language with expressive types that compiles to JavaScript, written in and inspired by Haskell.

Elm and PureScript are primarily classified as "Languages" and "Templating Languages & Extensions" tools respectively.

Elm and PureScript are both open source tools. It seems that PureScript with 5.86K GitHub stars and 427 forks on GitHub has more adoption than Elm with 5.3K GitHub stars and 424 GitHub forks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Elm
Pros of PureScript
  • 42
    Code stays clean
  • 40
    Great type system
  • 38
    No Runtime Exceptions
  • 31
    Fun
  • 26
    Easy to understand
  • 20
    Correctness
  • 20
    Type safety
  • 14
    JS fatigue
  • 10
    Declarative
  • 10
    Ecosystem agrees on one Application Architecture
  • 8
    Friendly compiler messages
  • 6
    Welcoming community
  • 6
    Fast rendering
  • 5
    If it compiles, it runs
  • 4
    Stable ecosystem
  • 3
    'Batteries included'
  • 1
    Package.elm-lang.org
  • 4
    Purely functional
  • 2
    Great FFI to JavaScript
  • 0
    More Haskell-ish than Haskell

Sign up to add or upvote prosMake informed product decisions

Cons of Elm
Cons of PureScript
  • 2
    No typeclasses -> repitition (i.e. map has 130versions)
  • 2
    JS interoperability a bit more involved
  • 1
    Backwards compability breaks between releases
  • 1
    More code is required
  • 1
    Main developer enforces "the correct" style hard
  • 1
    JS interop can not be async
  • 1
    No communication with users
  • 1
    Have Some Bugs

Sign up to add or upvote consMake informed product decisions

What is Elm?

Writing HTML apps is super easy with elm-lang/html. Not only does it render extremely fast, it also quietly guides you towards well-architected code.

What is PureScript?

A small strongly typed programming language with expressive types that compiles to JavaScript, written in and inspired by Haskell.

Need advice about which tool to choose?Ask the StackShare community!

What companies use Elm?
What companies use PureScript?
See which teams inside your own company are using Elm or PureScript.
Sign up for Private StackShareLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Elm?
What tools integrate with PureScript?
What are some alternatives to Elm and PureScript?
TypeScript
TypeScript is a language for application-scale JavaScript development. It's a typed superset of JavaScript that compiles to plain JavaScript.
React
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
ReasonML
It lets you write simple, fast and quality type safe code while leveraging both the JavaScript & OCaml ecosystems.It is powerful, safe type inference means you rarely have to annotate types, but everything gets checked for you.
Haskell
It is a general purpose language that can be used in any domain and use case, it is ideally suited for proprietary business logic and data analysis, fast prototyping and enhancing existing software environments with correct code, performance and scalability.
Svelte
If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
See all alternatives
How developers use Elm and PureScript
Tinkhaven uses
Elm

Frontend application