Skip to content

Instantly share code, notes, and snippets.

@Xion
Last active April 9, 2018 11:02
Show Gist options
  • Save Xion/c644da6f467870a09421adbf0f97580d to your computer and use it in GitHub Desktop.
Save Xion/c644da6f467870a09421adbf0f97580d to your computer and use it in GitHub Desktop.
#!/bin/sh
curl https://hackage.haskell.org/package/Chart-1.1/docs/Control-Lens-Operators.html | python -c '
import re, sys
for line in sys.stdin.readlines():
m = re.search(r"""class="def">([^<]+)</a> ::""", line)
if m:
print(m.group(1)[1:-1].replace("&lt;", "<").replace("&amp;", "&").replace("&gt;", ">"))
' | sort | uniq | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment