Skip to content

Proposal: Allow U+0009 in source files #3939

Description

@singpolyma

Summary

Purescript is an indentation-based syntax, similar to Haskell. It would therefore be useful to be able to indent code using the character set aside for this purpose, which is U+0009.

Motivation

Currently U+0009 is considered a syntax error.

Proposal

Allow U+0009 and treat it as one level of indentation. If a layout algorithm that is not aware of indentation is used, treating it as a single whitespace character should suffice. If a very picky alignment-based algorithm is used, treating it as eight whitespace characters should suffice.

Examples

main = do
	log "hello"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions