unisonweb/unison

I would like statistics for namespaces in `lib` to not include dependencies

Open

#5.016 aberto em 28 de mai. de 2024

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)Haskell (304 forks)batch import
help wanted

Métricas do repositório

Stars
 (6.624 stars)
Métricas de merge de PR
 (Mesclagem média 10d 2h) (5 fundiu PRs em 30d)

Description

It would be nice if listing lib, the output for those libraries did not include their own dependencies. Or at minimum not include base in the statistics.

It makes lib.oauth look enormous and makes me wonder "gee, how did I write that much code? is the surface area of the library going to confuse users?", but almost all of it is dependencies in lib.oauth.lib:

When looking at a library to consider how complex it is, I don't think it's helpful to include the dependences in these statistics, because invariably anything using Nat (for example) will have base as a dependency, so a very small library will still list itself as having over 6600 terms.

Consider my library MimeType, https://share.unison-lang.org/@kylegoetz/MimeType/code/releases/1.0.0/latest

It only has two types of its own, but it uses base's Text so it's listed as having 172 types.

Guia do colaborador