How to tell if a haskell sourcecode has Bang

128 Views Asked by At

Is there any library function that tells if a given .hs file uses strictness annotation? Or do I have to go into the syntax tree?

1

There are 1 best solutions below

0
On BEST ANSWER

Was able to figure this out with the parsers in Language.Haskell.Exts, which is from haskell-src-exts. Thanks luqui!