[Haskell-beginners] interface files
Tim Sears
tim at timsears.com
Mon Sep 21 09:47:23 EDT 2009
I have been trying out leksah over the past few days and it displays
the interface information for all the packages on my system.
I have found if *very* helpful for reading code. Thanks leksah devs!
The leksah IDE extracts this information from cabal files in order to
display it to the developer.
Depending on what you are doing, you could either use leksah, or
examine the code to see how it extracts the information.
-Tim
On Sep 21, 2009, at 9:12 AM, Luca Padovani wrote:
> I'd like to be able to extract the "interface" of a Haskell module,
> where the interface should basically contain the list of values
> defined within the module along with their type, as well as the types
> defined in the module.
>
> It seems to me like the only way of doing this is with GHC and the
> option --show-iface, which dumps the .hi file into some readable
> format. However, the dumped interface seems to contain far more
> information than the one I'm looking for (like annotations to the data
> types explaining whether they are recursive, etc.), and am not sure
> whether the grammar of this format is documented anywhere (other than
> the actual source of GHC, I mean).
>
> Is there any other convenient utility to automatically extract this
> kind of "interfaces"? [*]
>
> Thanks in advance.
>
> Luca
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
More information about the Beginners
mailing list