Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumericUnderscores is not supported #542

Closed
2 tasks done
sir4ur0n opened this issue Apr 1, 2019 · 1 comment · Fixed by #657
Closed
2 tasks done

NumericUnderscores is not supported #542

sir4ur0n opened this issue Apr 1, 2019 · 1 comment · Fixed by #657

Comments

@sir4ur0n
Copy link

sir4ur0n commented Apr 1, 2019

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.

@merc1031
Copy link

I ran into a similar issue in Floskell and opened Numeric Litaral Issues in HSE, but it was blocking me so I submitted HexFloatLiterals in HSE and building on it NumericUndersores in HSE.

Hoping they get merged in at some point

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants