-
Notifications
You must be signed in to change notification settings - Fork 149
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
Formatter drops unboxed tuples hashes #444
Comments
The only way to prevent the formatter from altering the definition of a type containing unboxed tuples is to rewrite the type as: newtype T a = T { unT# :: State# RealWorld -> (#,#) (State# RealWorld) a } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The formatter will reformat unboxed tuples to regular tuples by dropping the
#
character and removing necessary whitespace between the unboxed tuple and tuples elements. For example, the following type:would be reformatted as:
I'm not sure if this is specific to certain configuration. The formatter will drop unboxed tuples even if:
.stylish-haskell.yaml
option hascabal: false
andUnboxedTuples
listed underlanguage_extensions:
.UnboxedTuples
extension is listed underdefault-extensions
in the package cabal file.{-# LANGUAGE UnboxedTuples #-}
pragma is added to the*.hs
file containing the typeT
.The text was updated successfully, but these errors were encountered: