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?
Asked
Active
Viewed 78 times
3
-
4Yeah I'd recommend `haskell-src-exts` and then walking the tree. Just looking for a particular subpattern isn't too hard... – luqui Jun 22 '15 at 17:32
-
It might be harder than that, extensions can be specified in a .cabal file as well, or by another build tool. In practice you won't come across that often, but it is technically legal to do so. – bheklilr Jun 22 '15 at 18:04
-
Strictness is sometimes described in the documentation for the library (which is something you should read in any case if you plan to use it). – Bakuriu Jun 22 '15 at 20:26
1 Answers
0
Was able to figure this out with the parsers in Language.Haskell.Exts, which is from haskell-src-exts. Thanks luqui!

rem
- 893
- 4
- 18