3

Liquid Haskell uses comments like {-@ ... @-} for contracts block. Is it possible (with command line option, config file) to specify to use one line comments style like -- ... for contracts ?

Cactus
  • 27,075
  • 9
  • 69
  • 149
RandomB
  • 3,367
  • 19
  • 30

2 Answers2

3

No. Looking at the source code for Liquid Haskell (in the file src/Language/Haskell/Liquid/GHC/Interface.hs), extraction of specifications is performed by the function extractSpecComment. This searches for comments of type AnnBlockComment (which are comments in the {-...-} style) for those with an initial {-@ and terminating @-}. No other comment style is supported.

K. A. Buhr
  • 45,621
  • 3
  • 45
  • 71
1

No the only way to comment is putting yout comment :

{% comment %} Like this. {% endcomment %}