summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-11-09 11:03:25 +0000
committerRichard Jones <rjones@redhat.com>2009-11-09 11:05:19 +0000
commit49e85f8cda664819d0f73c476f1596d1ecc128c8 (patch)
tree6f9c4fa145f073af0943baabde940dea0fdb503a /src
parent93e3253fa68f4792a2844e0758c1780896e518e3 (diff)
downloadlibguestfs-49e85f8cda664819d0f73c476f1596d1ecc128c8.tar.gz
libguestfs-49e85f8cda664819d0f73c476f1596d1ecc128c8.tar.xz
libguestfs-49e85f8cda664819d0f73c476f1596d1ecc128c8.zip
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 8b834966..d91fc24f 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