From aa28826a8d512aa49506038edfe047458fc41ecb Mon Sep 17 00:00:00 2001 From: David Waern Date: Mon, 7 Jan 2008 18:18:02 +0000 Subject: Add documentation for readInterfaceFile --- src/Haddock/InterfaceFile.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Haddock/InterfaceFile.hs b/src/Haddock/InterfaceFile.hs index 2fcb9351..fe383336 100644 --- a/src/Haddock/InterfaceFile.hs +++ b/src/Haddock/InterfaceFile.hs @@ -96,7 +96,11 @@ writeInterfaceFile filename iface = do writeBinMem bh filename return () - +-- | Read a Haddock (@.haddock@) interface file. Return either an +-- 'InterfaceFile' or an error message. If given a GHC 'Session', the function +-- registers all read names in the name cache of the session. +-- The aim is to be compatible with interface files produced by any Haddock +-- of version 2.0.0.0 or greater. readInterfaceFile :: Maybe Session -> FilePath -> IO (Either String InterfaceFile) readInterfaceFile mbSession filename = do bh <- readBinMem filename -- cgit v1.2.3