Re: [Haskell-cafe] Is StateT what I need?

2007-12-19 Thread Tommy McGuire
Andre Nathan wrote: I think my code is a bit too long and that probably makes it hard for someone to help... Does anyone know of good example code using StateT for keeping a global state other than the one at the Simple StateT use page on the wiki? The one I have used is All About Monads:

[Haskell-cafe] Software Tools in Haskell

2007-12-10 Thread Tommy McGuire
In the if anyone is interested,... department For reasons that remain unclear, early this fall I started translating Brian W. Kernighan and P.J. Plaugher's classic _Software Tools in Pascal_ into Haskell. I have completed most of it, up to the second part of chapter 8 which presents a

Re: [Haskell-cafe] Graph theory analysis of Haskell code

2007-12-06 Thread Tommy McGuire
Ivan Miljenovic wrote: How I envisage it happening is that a parser would be used to find all functions in the given code, treat these as nodes in the graph and then use directed edges to indicate which functions call other functions. This resultant graph can then be analysed in various ways

Re: [Haskell-cafe] Graph theory analysis of Haskell code

2007-12-06 Thread Tommy McGuire
Ivan Miljenovic wrote: On 07/12/2007, Tommy McGuire [EMAIL PROTECTED] wrote: It just occurred to me that this idea is more general than the control or data flow analysis that are the focus of similar ideas I've seen before. For example, you could trace type usage through the code (which would