[Haskell-cafe] Getting module functions

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Fri Jul 11 20:24:00 EDT 2008


On 2008 Jul 11, at 17:23, rodrigo.bonifacio wrote:

> Is there any function that can be used for retrieving the exposed  
> functions of a given module?


Not in the usual introspection/RTTI sense; but you could probably use  
the GHC API to read a .hi file.  (At which point I direct you to  
people clueful about GHC innards, which I'm not.)

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH




More information about the Haskell-Cafe mailing list