Search code examples
purescript

How do you make comments in PureScript?


I'd like to know how to make comments in PureScript code.

In Python, the equivalent would be:

# Here is a comment

Or JavaScript

// Another comment

What is the equivalent in PureScript?


Solution

  • According to the PureScript Language Reference, there are single-line comments

    -- comment
    

    and multi-line comments

    {- comment
       comment line 2
    -}
    

    Special comments like -- | are picked up by documentation tooling.