filesize -package:hackage-security -package:http-conduit -package:turtle -package:ghc -package:unix -package:tar -package:ghc-lib package:base

For a handle hdl which attached to a physical file, hFileSize hdl returns the size of that file in 8-bit bytes.
hSetFileSize hdl size truncates the physical file with handle hdl to size bytes.