Continuing the discussion from How to qualify names in export list?:
Following @bernhard 's suggestion, I have used {-# LANGAUGE NoImplicitPrelude #-} to try and hide some standard functions; however, I’m still getting errors such as:
/home/luciano/src/da-marketplace/contingent-claims/daml/ContingentClaims/Valuation.daml|26 col 25| typecheck:Error:/home/luciano/src/da-marketplace/contingent-claims/daml/ContingentClaims/Valuation.daml:26:25: error: Ambiguous occurrence ‘negate’ It could refer to either ‘DA.Internal.RebindableSyntax.negate’, imported from ‘DA.Internal.RebindableSyntax’ (and originally defined in ‘GHC.Num’) or ‘ContingentClaims.Math.Ring.negate’, imported from ‘ContingentClaims.Math.Ring’ at /home/luciano/src/da-marketplace/contingent-claims/daml/ContingentClaims/Valuation.daml:7:1-33 (and originally defined at /home/luciano/src/da-marketplace/contingent-claims/daml/ContingentClaims/Math/Ring.daml:21:1-6)
Is this a bug?
Looking at the source code, I can see that Prelude re-exports some of these DA.Internal functions.
What confuses me is that it’s impossible to explicitly import DA.Internal (it throws an error saying this is not allowed), so I’m baffled why these are even in scope.