Changeset 2497 for src/Pugs/External

Show
Ignore:
Timestamp:
04/29/05 23:42:50 (4 years ago)
Author:
theorbtwo
svk:copy_cache_prev:
4052
Message:

We have haddockability! (There's not yet a makefile rule for it -- I still
need to figure out the best options for it. In the meantime, try find src
-name \*.hs|perl -pe 's/hs$/hpp/'|xargs make && haddock find src -name \*.hpp)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/External/Haskell.hs

    r2441 r2497  
    6868 
    6969externalizeHaskell :: String -> String -> IO String 
     70#ifndef HADDOCK 
    7071externalizeHaskell mod code = do 
    7172    let names = map snd exports 
     
    9293        ParseOk (HsModule _ _ _ _ decls) -> decls 
    9394        ParseFailed _ err -> error err 
     95#endif 
    9496 
    9597wrap :: String -> IO Dec 
     98#ifndef HADDOCK 
    9699wrap fun = do 
    97100    [quoted] <- runQ [d| 
     
    101104        |] 
    102105    return $ munge quoted ("extern__" ++ fun) 
     106#endif 
    103107 
    104108munge (ValD _ x y) name = ValD (VarP (mkName name)) x y