Skip to content

Development

Veronika Romashkina edited this page Jun 20, 2020 · 3 revisions

Instructions and hints on developing Stan. Also contains helpful commands during the project development and testing.

Generate test HTML report

$ ./report

Open stan.html.

View HIE AST of a file

This is helpful for debugging purposes and for inspecting how HIE files look like.

$ cabal build all
$ cabal repl lib:stan
ghci> import Stan.Hie.Debug
ghci> readHieFiles ".hie" >>= debugHieFile "target/Target/Partial.hs"

Generate "All inspections" markdown

cabal run stan -- inspections-to-md | xclip -i -selection clipboard

And then edit the 'All inspections' Wiki page by pasting the generated markdown:

  • Ctrl + p

Note: probably Cabal output can be copied as well, make sure it doesn't go on the page.

Clone this wiki locally