stylish-haskell
stylish-haskell copied to clipboard
import formatting deletes {-# SOURCE #-} pragma that's need for hs-boot setups to compile
I've encountered the issue while working with mutually recursive modules as described here: https://downloads.haskell.org/~ghc/7.0.3/docs/html/users_guide/separate-compilation.html
the same seems to apply to pragmas needed for HTF. Example:
import {-@ HTF_TESTS @-} Lib.Foundation_test
There is a need to be able to mark a file as "to not format" or a method to protect a group of code.
This is an important issue and makes the tool unusable for all users of the HTF testing framework.