From: Richard Jones Date: Mon, 9 Nov 2009 11:03:25 +0000 (+0000) Subject: haskell: Disambiguate truncate symbol. X-Git-Tag: 1.0.78~34 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=49e85f8cda664819d0f73c476f1596d1ecc128c8;p=libguestfs.git haskell: Disambiguate truncate symbol. This is a hack, but GHC doesn't like it if we have a symbol with the same name as one in the Haskell Prelude. Therefore we much hide the corresponding symbol in the Prelude when building this module. --- diff --git a/src/generator.ml b/src/generator.ml index 8b83496..d91fc24 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -9317,6 +9317,12 @@ module Guestfs ( pr " ) where + +-- Unfortunately some symbols duplicate ones already present +-- in Prelude. We don't know which, so we hard-code a list +-- here. +import Prelude hiding (truncate) + import Foreign import Foreign.C import Foreign.C.Types