- Download from https://hackage.haskell.org/packages/hoogle.tar.gz
- Or https://hackage.haskell.org/package/base-4.16.2.0/docs/base.txt
- Delete comments:
g/--/d
- Delete empty lines:
g/^$/d
- Delete lines with
module|type|instance|class|infix|newtype|data
in Vim:g/^infix/d
- Delete explicit forall:
%s/forall .*\. //g
- Delete constructors:
g/^[A-Z]/d
- Delete in brackets:
g/^\[/d
- Make unique and sort
sort -u -o functions.txt functions.txt
- https://hackage.haskell.org/package/lens-5.1.1/docs/lens.txt
- Delete internal modules
- Delete constructors:
g/^_*[A-Z]/d
- Delete lines with
g/^pattern/d
- Delete lines with
g/^ type /d
- Delete lines with
:g/::.*::/d
- Remove some of the long field functions e.g.
_10
- Do regular instructions
- Make unique and sort
sort -u -o lens.txt lens.txt