[Haskell-cafe] minimal interface

Sean McLaughlin seanmcl at gmail.com
Wed Mar 3 10:57:26 EST 2010


Hi Ivan,

  I ran SourceGraph on the program above.  Could you help me find where A.g
is unused?
In particular, I can't see a difference in the output in the following
cases:

main = do
  let a = A.f 7
  putStrLn $ show a

main = do
  let a = A.f $ A.g 7
  putStrLn $ show a

Thanks!

Sean

On Tue, Mar 2, 2010 at 5:14 PM, Ivan Miljenovic
<ivan.miljenovic at gmail.com>wrote:

> On 3 March 2010 08:25, Sean McLaughlin <seanmcl at gmail.com> wrote:
> > For instance, if module A exports f, but A.f is never used in my compiled
> program,
> > I would like to be warned of this fact.
>
> My SourceGraph program (
> http://hackage.haskell.org/package/SourceGraph ) does this, but you'll
> have to look through the generated report to find it.
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> IvanMiljenovic.wordpress.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100303/09f85c6d/attachment.html


More information about the Haskell-Cafe mailing list