[Hackage] #313: line counting

#313: line counting ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- It would be nice if Cabal had a way to do source line counting. Two programs I know of to do the hard work are sloccount http://www.dwheeler.com/sloccount/ and ohcount http://labs.ohloh.net/ohcount I've also attached a small perlscript from the GHC source tree, but it has some drawbacks (most notably, only supporting Haskell). -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/313 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#313: line counting ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by igloo): * type: defect => enhancement -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/313#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#313: line counting ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): Why do we want the Cabal lib to do this? I can see why we might want these stats on the hackage page, but do we need it elsewhere? If anything I guess it could go in cabal-install in some stats command. What is the use case? What user interface might you expect? -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/313#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#313: line counting ----------------------------+----------------------------------------------- Reporter: igloo | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by igloo): Cabal knows which files are source files. Just saying something like `sloccount .` will include generated files, e.g `Parser.hs`, and will also look at files under `_darcs`. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/313#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage