relude
relude copied to clipboard
π Safe, performant, user-friendly and lightweight Haskell standard library
You may observe that any list has at least one permutation.βThe empty list's only permutation is the empty list itself, so: ``` Ξ» Relude.List.permutations [ ] [[]] ``` This...
It seems the log (natural logarithm) function from Floating typeclass is not reexported. On compilation of program that uses it I get: ``` Variable not in scope: log :: Double...
Seems like in a while it would be reasonable to remove documentation on it, or mark/refer/remind about it as a former option for legacy GHC versions.
https://github.com/haskell/filepath/pull/103 AFPP will hit filepath sometime soon. What remains to be done is adding support for it in unix and Win32 (I have patches for those). It will not be...
Is there a reason that the `Data.Text.Lazy.Builder` type does not make any appearance in `Relude.String.Conversion`? I think it would be useful to have `ToText`, `ToLText`, and `ToString` instances for it.
Resolves #385 I've done this one in the image and likeness of #319. However, this one actually changes the exposed interface, so I'm not sure whether I should change the...
`base-4.16` started to reexport the unary tuple type `Solo` from the `Data.Tuple` module. A data type like this one is helpful in various library. I'm usually using `Only` from the...
The following function: ```haskell append :: Semigroup a => a -> a -> a append = () ``` I think it can be useful and beginner-friendly π Especially with more...
`readMaybe` is implemented like this: ```haskell readMaybe :: Read a => String -> Maybe a readMaybe s = case readEither s of Left _ -> Nothing Right a -> Just...
It might be useful to have a `group` function that has more specific type. `Data.List` has `group :: Eq a => [a] -> [[a]]`. I propose adding `group :: Eq...