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

Support c2hs (at least partially)

Open kolmodin opened this issue 9 years ago • 0 comments

It'd be really cool if stylish-haskell could support files that uses c2hs. I'm mainly looking for support for making imports stylish.

The .chs files include lines like

{#pointer *channel as ^ newtype#}

which naturally doesn't parse with a standard haskell parser.

It'd be ok if stylish-haskell only styled the imports which are not in c2hs style, and ignored or skipped the rest of the file when it encountered a c2hs import.

{#import Some.Haskell.Module#}

kolmodin avatar Mar 19 '15 20:03 kolmodin