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

Unusual Record Formatting (hard tabs) #29

Open
jhenahan opened this issue Dec 18, 2012 · 0 comments
Open

Unusual Record Formatting (hard tabs) #29

jhenahan opened this issue Dec 18, 2012 · 0 comments

Comments

@jhenahan
Copy link

In the example

data Customer = Customer {
    customerID :: CustomerID,
    customerName :: String,
    customerAddress :: Address
} deriving Show

stylish yields

data Customer = Customer {
    customerID :: Cust     omerID,
    customerName :: Stri   ng,
    customerAddress :: Address
} deriving Show

In Utrecht style

data Customer = Customer {
      customerID :: CustomerID
    , customerName :: String
    , customerAddress :: Address
    } deriving Show

stylish yields

data Customer = Customer {
      customerID :: Cust     omerID
    , customerName :: Stri   ng
    , customerAddress :: Address
    } deriving Show

My global config contains

- records: {}

It appears that this is only an issue when using hard tabs. Using soft tabs yields the expected results. While this is more correct w.r.t. the Report, it may be worthwhile to add support for tabs, or provide a warning in the README about this case.

fujimura pushed a commit to fujimura/stylish-haskell that referenced this issue Feb 19, 2015
Update dependency to include latest network lib (version 2.4.0.1)
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

No branches or pull requests

1 participant