Teach ghc-pkg to read multiple registrations from command line
ghc-pkg register and ghc-pkg update should take files/stdin streams which consist of multiple packages separated by ---. ghc-pkg will operate atomically: either all of the registrations succeed or none are performed.
Edited by Edward Z. Yang