stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

import formatting deletes {-# SOURCE #-} pragma that's need for hs-boot setups to compile

Open dredozubov opened this issue 6 years ago • 1 comments

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

dredozubov avatar Feb 13 '19 20:02 dredozubov

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.

andrewufrank avatar Apr 09 '19 09:04 andrewufrank