filesize -package:basement -package:ghc-lib -package:stack package:directory

Obtain the size of a file in bytes.