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

Type application with Nats or Symbols upsets let alignment #48

Closed
expipiplus1 opened this issue Aug 15, 2017 · 3 comments
Closed

Type application with Nats or Symbols upsets let alignment #48

expipiplus1 opened this issue Aug 15, 2017 · 3 comments

Comments

@expipiplus1
Copy link
Contributor

expipiplus1 commented Aug 15, 2017

Compare:

foo =
  let a = b @1
      cccc = ()
  in  foo

foo =
  let a = b @""
      cccc = ()
  in  foo

foo =
  let a    = b @d
      cccc = ()
  in  foo

foo =
  let a    = b @D
      cccc = ()
  in  foo
@lspitzner
Copy link
Owner

lspitzner commented Aug 15, 2017

Right, this most likely comes down to this case lacking a proper implementation. Although I am a bit confused why it does not work as-is; how layoutByExact works but inhibits alignment.. will investigate later next weekend.

lspitzner added a commit that referenced this issue Aug 20, 2017
- one-line externals are not detected as multiline in backend
- layouting of EAsPat (when TypeApplications is disabled)
- layouting of HsTyLit (TypeApplications with literals)
@lspitzner
Copy link
Owner

Fixed on dev branch

@expipiplus1
Copy link
Contributor Author

expipiplus1 commented Aug 20, 2017 via email

eborden pushed a commit to eborden/brittany that referenced this issue Nov 19, 2017
- one-line externals are not detected as multiline in backend
- layouting of EAsPat (when TypeApplications is disabled)
- layouting of HsTyLit (TypeApplications with literals)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants