Skip to content

Template Haskell expressions in Unicode mathematical white square brackets are formatted differently than in ASCII brackets. #934

@kindaro

Description

@kindaro

Describe the bug

Template Haskell expressions in Unicode mathematical white square brackets are formatted differently than in ASCII brackets.

To Reproduce

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnicodeSyntax   #-}

ascii = [|x|]

unicode = x

Expected behavior

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnicodeSyntax #-}

ascii = [|x|]

unicode = [|x|]

Environment

% ormolu --version
ormolu 0.5.0.1 UNKNOWN UNKNOWN
using ghc-lib-parser 9.2.5.20221107

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstyleNitpicking and things related to purely visual aspect for formatting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions