avh4 / avh4/elm-format

Multiline function arguments

Open
#308 6 comments 1 reaction 0 assignees View on GitHub
discussion
Dominant language
Haskell
Stars
1.3k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

I have a function that takes approximately a billion arguments, which makes the line a bit too long for my taste. Should there be an option to have multiline arguments to a function?

E.g., this
```
toChange
id
changeType
userName
bot
wiki
serverName
title
comment
serverUrl
serverScriptPath
revision
=
```
instead of this
```
toChange id changeType userName bot wiki serverName title comment serverUrl serverScriptPath revision =
```

P.S. I'm not sure where the `=` would be most appropriate.
P.P.S. Yeah, my code is probably horrible. If anyone wants to improve it, contact me 😇

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the issue's examples and the official Elm Style Guide referenced by the repository description. Determine the intended placement of `=` and the exact behavior of multiline function arguments; done means elm-format supports the requested layout consistently without changing unrelated formatting.

Written by the indexing model from the issue text.

Assessment

Tech stack
elm
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.