Skip to content

Commit

Permalink
scripts/stats: include let … in … doctests, and fudge type operators
Browse files Browse the repository at this point in the history
  • Loading branch information
liyang committed Mar 12, 2013
1 parent 27e595c commit 464d2c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/stats
Expand Up @@ -5,9 +5,11 @@ cd "$(git rev-parse --show-toplevel)"

unsafe="$(g -e '\(#\.\|\.#\)' --and --not \
\( -e INLINE --or -e '^\s*(\s*\(#\.\|\.#\)\s*)' \))"
doc="$(g -e '--\s\+>>>\s\+[^:]' --and --not -e '--\s\+>>>\s\+\(import\|let\)')"
doc="$(g -e '--\s\+>>>\s\+[^:]' --and --not -e '--\s\+>>>\s\+\(import\|let\)' \
--or -e '--\s\+>>>\s\+let\s\+.*\<in\>')"
ops="$(g '^(.\+)\s*::')"
mod="$(find src -name '*.hs' | wc -l)"

((ops+=3)) # :@ :> :>> from Control.Lens.Internal.Zipper
echo "unsafeCoerces: $unsafe | doctests: $doc | operators: $ops | modules: $mod"

0 comments on commit 464d2c6

Please sign in to comment.