Hide buildKeyGen from Crpto.Classes

I'm getting this error when I try to install the package.

    Data/OpenPGP/CryptoAPI.hs:360:22:
        Ambiguous occurrence `buildKeyGen'
        It could refer to either `Data.OpenPGP.CryptoAPI.buildKeyGen',
                                 defined at Data/OpenPGP/CryptoAPI.hs:45:1
                              or `Crypto.Classes.buildKeyGen',
                                 imported from `Crypto.Classes' at Data/OpenPGP/CryptoAPI.hs:13:1-59
    
    Data/OpenPGP/CryptoAPI.hs:364:22:
        Ambiguous occurrence `buildKeyGen'
        It could refer to either `Data.OpenPGP.CryptoAPI.buildKeyGen',
                                 defined at Data/OpenPGP/CryptoAPI.hs:45:1
                              or `Crypto.Classes.buildKeyGen',
                                 imported from `Crypto.Classes' at Data/OpenPGP/CryptoAPI.hs:13:1-59
    
    Data/OpenPGP/CryptoAPI.hs:368:22:
        Ambiguous occurrence `buildKeyGen'
        It could refer to either `Data.OpenPGP.CryptoAPI.buildKeyGen',
                                 defined at Data/OpenPGP/CryptoAPI.hs:45:1
                              or `Crypto.Classes.buildKeyGen',
                                 imported from `Crypto.Classes' at Data/OpenPGP/CryptoAPI.hs:13:1-59
    
    Data/OpenPGP/CryptoAPI.hs:372:22:
        Ambiguous occurrence `buildKeyGen'
        It could refer to either `Data.OpenPGP.CryptoAPI.buildKeyGen',
                                 defined at Data/OpenPGP/CryptoAPI.hs:45:1
                              or `Crypto.Classes.buildKeyGen',
                                 imported from `Crypto.Classes' at Data/OpenPGP/CryptoAPI.hs:13:1-59
    Failed to install openpgp-crypto-api-0.6.2