brittany
haskell source code formatter (by lspitzner)
purescript
A strongly-typed language that compiles to JavaScript (by purescript)
Our great sponsors
brittany | purescript | |
---|---|---|
7 | 52 | |
689 | 8,433 | |
- | 0.5% | |
0.0 | 6.6 | |
over 1 year ago | 9 days ago | |
Haskell | Haskell | |
GNU Affero General Public License v3.0 only | GNU General Public License v3.0 or later |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
brittany
Posts with mentions or reviews of brittany.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-23.
-
Format multiline imports in hls (emacs)
You will also need a formatter that uses that style. Brittany for example. The default formattingProvider for HLS is ormolu, which I believe doesn't use this style, so you will have to change this setting.
-
Why is there no "standard" formatting tool for haskell?
For Haskell I use Brittany with this config:
Yeah I couldn't find anything at all which is really unfortunate. You could check out the config source code
-
Advent of Code 2021 day 1
Turns out I prefer Brittany to Ormolu, I edited it so it hopefully looks less verbose all on one line
-
Let's talk about Brittany
I use Brittany and prefer it to Ormolu, because it aligns more things and it break lines that are too long automatically. I have recently tried to figure out how I could implement a solution to https://github.com/lspitzner/brittany/issues/157, but it is quite hard to figure out which parts of the code would be involved in such a change. And I don't really have enough time to make steady contributions, but I will probably try to make a few contributions sometime.
I would say that development has stalled: https://github.com/lspitzner/brittany/issues/322
purescript
Posts with mentions or reviews of purescript.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-02-29.
- Learning Elm by porting a medium-sized web front end from React (2019)
- Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
-
Building React Components Using Unions in TypeScript
Naturally I’d recommend using a better language such as ReScript or Elm or PureScript or F#‘s Fable + Elmish, but “React” is the king right now and people perceive TypeScript as “less risky” for jobs/hiring, so here we are.
-
Is there a better way to do read-only types
Unless you want to switch to https://www.purescript.org/.
- (strongly typed) functional language compilers running in browser
-
purescript VS purs-eval - a user suggested alternative
2 projects | 2 Mar 2023
- Por que Elm é uma linguagem tão deliciosa?
-
My main beef with Haskell/JS
Assuming this is a PS knock, fwiw this went away a good bit ago: https://github.com/purescript/purescript/releases/tag/v0.14.2
- 10 years of Scala.js
-
purerl - Integrating PureScript into Elixir projects
PureScript is a Haskell-like language aimed at providing an alternative to TypeScript for statically typed programming in the JavaScript space. I highly recommend taking a look at PureScript for your compile-to-JavaScript needs outside of the use case we'll be talking about in this post.
What are some alternatives?
When comparing brittany and purescript you can also consider the following projects:
fp-ts - Functional programming in TypeScript
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
stylish-haskell - Haskell code prettifier [Moved to: https://github.com/haskell/stylish-haskell]
elm-reactor
Elm - Compiler for Elm, a functional language for reliable webapps.
rescript-compiler - The compiler for ReScript.
Idris2 - A purely functional programming language with first class types
ormolu - A formatter for Haskell source code
liquidhaskell - Liquid Types For Haskell
polysemy - :gemini: higher-order, no-boilerplate monads
haskell-names - Haskell suite library for name resolution