From 9490f5ceb4cdb840eb94bdfc53fe593e130a42c3 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 6 Jan 2003 14:15:38 +0000 Subject: [PATCH] [project @ 2003-01-06 14:15:38 by simonmar] Add a handy hint for finding the correct fully-qualified original names for entities in .hi-boot files. --- ghc/docs/users_guide/separate_compilation.sgml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ghc/docs/users_guide/separate_compilation.sgml b/ghc/docs/users_guide/separate_compilation.sgml index 51cad70..1678413 100644 --- a/ghc/docs/users_guide/separate_compilation.sgml +++ b/ghc/docs/users_guide/separate_compilation.sgml @@ -618,7 +618,15 @@ newtype TA = MkTA GHC.Base.Int particular, most Prelude entities aren't actually defined in the Prelude (see for example GHC.Base.Int in the above - example). + example). HINT: to find out the fully-qualified name for + entities in the Prelude (or anywhere for + that matter), try using GHCi's + :info command, eg. +Prelude> :m -Prelude +> :i IO.IO +-- GHC.IOBase.IO is a type constructor +newtype GHC.IOBase.IO a +... Only data, type, -- 1.7.10.4