relude
🌀 Safe, performant, user-friendly and lightweight Haskell standard library (by kowainik)
hnix
A Haskell re-implementation of the Nix expression language (by haskell-nix)
relude | hnix | |
---|---|---|
5 | 4 | |
688 | 729 | |
0.3% | 0.4% | |
6.0 | 6.8 | |
4 months ago | 2 months ago | |
Haskell | Nix | |
MIT License | BSD 3-clause "New" or "Revised" License |
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.
relude
Posts with mentions or reviews of relude.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-06.
-
GHCanIUse - GHC language extensions compatibility table
I've also hoped that the "standard library" (i.e. Prelude) should be redesigned. I just found relude which looks very promising.
-
Good Haskell Source Code
Project to look at is: https://github.com/kowainik/relude.
-
Assessing Haskell (blogpost, slightly negative!)
Another good practice to prevent runtime exceptions is to avoid partial functions like head and tail. One way to ensure that one doesn't accidentally slip in is to use an alternative prelude (e.g. relude) that doesn't export them by default. Another alternative is to use hlint to warn about them (and then import their safe counterparts instead).
-
How do I code for the Maybe type for the following code?
That note is wrong, it is only a problem if the function input has a large cardinality. I opened a PR to fix this: https://github.com/kowainik/relude/pull/389
-
Folding Nonempty Structures In Haskell
And relude.
hnix
Posts with mentions or reviews of hnix.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-06.
-
Adding my own stuff to the prelude / global imports?
I can refere to prelude setup in HNix
-
Good Haskell Source Code
I also can nominate HNix: https://github.com/haskell-nix/hnix. Nix is a lazy pure language, HNix is an implementation of Nix in lazy pure language (Haskell). The project was done by a famous expert in the field of compilers/interpreters, which worked on Borland C++ compiler back in a day. The project overall was done by a pretty start team.
-
Tvix: We are rewriting Nix
Well, maintaining a rewrite of Nix in Haskell: https://github.com/haskell-nix/hnix.
-
HNix - Nix in Haskell, about the project & meeting with the creator
HNix is a Nix (pure lazy language) interpreter/tooling in Haskell. So it is a field&case of pure-to-pure, lazy-to-lazy language creation. HNix is created with fancy design paradigms (design introduction): as recursion schemes (since Nix is a recursive language) & Abstracting Definitional Interpreters. Mentioning these two particularly, as they align HNix to GHC in a natural way, design leverages & projects GHC power to HNix, allowing to concentrate on language implementation.
What are some alternatives?
When comparing relude and hnix you can also consider the following projects:
protolude - A sensible starting Prelude template.
massiv - Efficient Haskell Arrays featuring Parallel computation
universum - :milky_way: Prelude written in @Serokell
safecopy - An extension to Data.Serialize with built-in version control
base-prelude - The most complete prelude formed only from the "base" package
hashable - A class for types that can be converted to a hash value
preamble - Yet Another Prelude
abcBridge - Haskell bindings for ABC
humble-prelude
b-tree - Haskell on-disk B* tree implementation
papa - Reasonable Haskell default import
primitive - This package provides various primitive memory-related operations.