SecureMem is similar to ByteString, except that it provides a memory chunk that will be auto-scrubbed after it run out of scope. After uninstalling, run this command to unregister the package from the ghc package database: ghc-pkg recache