import Foreign.C
import Foreign ( Ptr, nullPtr )
import Panic ( panic )
-import DriverUtil ( prefixUnderscore )
import BasicTypes ( SuccessFlag, successIf )
+import Config ( cLeadingUnderscore )
import Outputable
-- ---------------------------------------------------------------------------
then return Nothing
else return (Just addr)
+prefixUnderscore :: String -> String
+prefixUnderscore
+ | cLeadingUnderscore == "YES" = ('_':)
+ | otherwise = id
+
loadDLL :: String -> IO (Maybe String)
-- Nothing => success
-- Just err_msg => failure