From 49e85f8cda664819d0f73c476f1596d1ecc128c8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 9 Nov 2009 11:03:25 +0000 Subject: [PATCH] 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. --- src/generator.ml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.8.3.1