module

Analyzer::Haskell::Helper

Shared helpers for the Haskell framework analyzers (Scotty, Servant).

Instance methods

strip_haskell_comments(text : String) : String

Blank out -- line comments and nested {- -} block comments while PRESERVING newlines/offsets, so a multi-line comment doesn't collapse lines and shift every later endpoint's reported line number.

Source