On 23 March 2010 10:02, Dupont Corentin <corentin.dup...@gmail.com> wrote: > I’m relatively new to Haskell.
Welcome! > I’m wondering if it exist a tool to graphically represent Haskell code. > > Look at the little graphics at: http://www.haskell.org/arrows/index.html (and > following pages) from Ross Paterson. > > If found these very useful to understand the Arrow monad. > > Why not automatise this in a tool? Such a tool could draw a graphic from the > code of a program. 1) Because no-one has written such a tool yet (though someone has suggested doing one as a GSoC project). 2) I'm of the opinion that unless you just use it on small snippets, the generated images will be too large and unweildy. > This could be done entirely automatically from the types of the functions. Except not everyone provides type signatures for their functions; whilst it may be possible to use the GHC API to infer these type signatures, my understanding is that it's preferable to use other parsers such as haskell-src-exts as the GHC API is unstable. [shameless plug] My SourceGraph (http://hackage.haskell.org/package/SourceGraph) tool does function call visualisation as part of its analyses. [/shameless plug] -- Ivan Lazar Miljenovic ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe