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

Obtain the size of a file in bytes.