[project @ 2002-10-11 14:25:24 by stolz]
[ghc-hetmet.git] / ghc / compiler / ghci / Linker.lhs
index d5ba66d..2b45436 100644 (file)
@@ -594,7 +594,7 @@ data LibrarySpec
 -- just to get the DLL handle into the list.
 partOfGHCi 
 #          ifndef mingw32_TARGET_OS
-           = [ "base", "concurrent", "posix", "text", "util" ]
+           = [ "base", "haskell98", "haskell-src", "readline" ]
 #          else
           = [ ]
 #          endif
@@ -732,11 +732,13 @@ loadFramework extraPaths rootname
    = do        { mb_fwk <- findFile mk_fwk (extraPaths ++ defaultFrameworkPaths)
        ; case mb_fwk of
            Just fwk_path -> loadDLL fwk_path
-           Nothing       -> return (Just "not found")
+           Nothing       -> return (Just "not found") }
                -- Tried all our known library paths, but dlopen()
                -- has no built-in paths for frameworks: give up
    where
      mk_fwk dir = dir ++ '/' : rootname ++ ".framework/" ++ rootname
+       -- sorry for the hardcoded paths, I hope they won't change anytime soon:
+     defaultFrameworkPaths = ["/Library/Frameworks", "/System/Library/Frameworks"]
 #endif
 \end{code}