def block_comment(s: str, documentation: bool = True) -> str:
    """Block comment, optionally documentation format."""
    start = '{-|' if documentation else '{-'
    s_ = s[:-1] if s == '\n' else s
    return f'{start} {s_}\n\n-}}\n'