Changes between Version 2 and Version 3 of Ghc/Hooks


Ignore:
Timestamp:
Sep 4, 2013 10:12:34 PM (8 months ago)
Author:
nominolo
Comment:

Fix formatting

Legend:

Unmodified
Added
Removed
Modified
  • Ghc/Hooks

    v2 v3  
    1616 
    1717{{{ 
    18 ... 
     18 
    1919  withGhc libdir $ do 
    2020    dflags0 <- getSessionDynFlags 
     
    2323                                 $ hooks dflags0 } 
    2424    setSessionDynFlags dflags1 
    25 ... 
    2625 
    2726myLocateLib :: DynFlags -> Bool -> [FilePath] -> String -> IO LibrarySpec 
    28 myLocateLib ... 
     27myLocateLib  
    2928 
    3029myLinkDynLibHook :: DynFlags -> [FilePath] -> [PackageId] -> IO () 
    3130myLinkDynLibHook dflags paths ids = do  
    32  
    33 }}}                                                .  
     31}}} 
    3432 
    3533The two functions will be called whenever GHC needs to locate or link a dynamically loaded library. 
     
    6159 
    6260{{{ 
    63 -- usage: 
     61-- Defining a hook type: 
    6462data LocateLibHook = LocateLibHook deriving Typeable 
    65  
    6663type instance HookType LocateLibHook = DynFlags -> Bool -> [FilePath] -> String -> IO LibrarySpec 
    6764}}}