check and lint hs files on write