Skip to content

NumericUnderscores is not supported #542

@sir4ur0n

Description

@sir4ur0n

Problem

Hindent doesn't seem to support NumericUnderscores.

  • I checked the issue tracker for existing issues about this problem.
  • I'm using the latest version of hindent. (5.2.7)

Input haskell

{-# LANGUAGE NumericUnderscores #-}

module Foo where

foo = 10_000

Expected output haskell

{-# LANGUAGE NumericUnderscores #-}

module Foo where

foo = 10_000

Actual output haskell

{-# LANGUAGE NumericUnderscores #-}

module Foo where

foo = 10 _000

Note the space between 10 and _000.

Also doesn't work when the extension is enabled in Stack package.yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions