3 Development
Veronika Romashkina edited this page 2020-06-20 18:36:26 +01:00

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.