<div dir="ltr">Not specifically about Haskell, but I read some lecture notes on this topic yesterday (by Michael Schwartzbach, PDF here: <a href="http://lara.epfl.ch/web2010/_media/sav08:schwartzbach.pdf">http://lara.epfl.ch/web2010/_media/sav08:schwartzbach.pdf</a>).  The notes do a good job of explaining how you set up lattices for various kinds of analyses, and how calculating fixed points over those lattices can yield various sorts of interesting information.  Most of the examples are based on a simple imperative language, but much of the analysis is applicable to Haskell as well.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 10 September 2013 13:15, Maarten Faddegon <span dir="ltr">&lt;<a href="mailto:haskell-cafe@maartenfaddegon.nl" target="_blank">haskell-cafe@maartenfaddegon.nl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear list,<br>
<br>
I am interested in learning more about static analysis of Haskell code. Specifically of the relation between arguments of recursive and non-recursive calls.<br>
<br>
For example if we look at the ++ function from Prelude:<br>
<br>
        (++) []     ys = ys<br>
        (++) (x:xs) ys = x : xs ++ ys<br>
<br>
amongst others, we could infer the relations:<br>
<br>
        ys_i+1     = ys_i<br>
        (x:xs)_i+1 = xs_i<br>
<br>
Searching the web I found several tools (HLint, Haskabelle, Sourcegraph), but I am interested in the theory behind this. If you could recommend a paper or a book on this topic I would be grateful.<br>
<br>
Thanks,<br>
  Maarten Faddegon<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ian Ross   Tel: +43(0)6804451378   <a href="mailto:ian@skybluetrades.net" target="_blank">ian@skybluetrades.net</a>   <a href="http://www.skybluetrades.net" target="_blank">www.skybluetrades.net</a>
</div>