diff --git a/README.md b/README.md index 8dd3762..a35f4d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # snippets +Random assortments of snippets... diff --git a/stack-export-licenses.fish b/stack-export-licenses.fish new file mode 100755 index 0000000..db6b751 --- /dev/null +++ b/stack-export-licenses.fish @@ -0,0 +1,7 @@ +#!/usr/bin/fish +for i in (stack ls dependencies --license --external | cut -d ' ' -f 2 | sort -u); + echo "# Licensed under $i:"; + stack ls dependencies --license --external | grep $i | cut -d ' ' -f 1 | sort -u | sed 's/^/- /'; + echo ""; + echo ""; +end > dependency-licenses.md