4 ms·
The most successful haskell project I've seen in the wild is shellcheck [0]. Here is cloc run against the repo: $ cloc . 75 text files.
by commandersaki 4y ago
The most successful haskell project I've seen in the wild is shellcheck [0].
Here is cloc run against the repo:
$ cloc .
75 text files.
75 unique files.
12 files ignored.
github.com/AlDanial/cloc v 1.90 T=0.08 s (788.1 files/s, 271069.0 lines/s)
--------------------------------------------------------------------------------
Language files blank comment code
--------------------------------------------------------------------------------
Haskell 29 2381 1321 15440
Markdown 5 393 0 1088
Bourne Again Shell 12 99 39 438
SVG 1 32 0 262
YAML 3 39 23 160
Dockerfile 6 35 54 104
Bourne Shell 8 3 4 99
--------------------------------------------------------------------------------
SUM: 64 2982 1441 17591
--------------------------------------------------------------------------------
I wouldn't say that this is a compressed version of a 100,000 lines of C++. I'm not adept at evaluating a Haskell source base to do a translation to C++ either.
[0]: https://github.com/koalaman/shellcheck https://github.com/koalaman/shellcheck
- nine_k 4y agoI bet pandoc [1] is even more successful, in the sense of pretty wide use. [1]: https://github.com/jgm/pandoc https://github.com/jgm/pandoc
- sitkack 4y agoThat is amazing! "Every good regulator of a system must be a model of that system" [1] So not only does the Haskell code encode a shell, but also a type inferencer and type checker, all in 18kloc. 3-5kloc more and you would have a shell compiler! [1] https://libgen.is/scimag/10.1080%2F00207727008920220 https://libgen.is/scimag/10.1080%2F00207727008920220