documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Automated checking of code examples

Open hdgarrood opened this issue 9 years ago • 2 comments

Having mistakes such as those addressed by #69, e.g. examples left over from before PureScript had an Int type, is a little embarrassing, in my view. I'd like to investigate some kind of script which ensures that code examples at least compile.

hdgarrood avatar Apr 23 '17 15:04 hdgarrood

I'm interested to see what you come up with for this, I have a similar problem trying to keep the Halogen guide, etc. up to date too.

garyb avatar Apr 23 '17 17:04 garyb

One option could be to require code sections to combine into valid .purs files, and then just try to compile those files against the core library package set using the Try PureScript API.

paf31 avatar Apr 23 '17 17:04 paf31