Skip to content

Add code formatter #49

Open
Open

Description

@wismill

Following this comment, it would be useful to use Formolu to ensure coding style.

Activity

  1. harendra-kumar commented on Dec 20, 2021

    @harendra-kumar
    Member

    One hiccup that we saw in adopting fourmolu last time was that there was no way to format like this:

    pollCounts
        :: MonadAsync m
        => (a -> Bool)
        -> (Stream m Int -> Stream m Int)
        -> Fold m Int b
        -> Stream m a
        -> Stream m a
    

    It only supported putting the arrows at the end. We have codebase with this style and we have gotten used to it. We did not want to change that. Hopefully it might have support for this now.

  2. wismill commented on Dec 20, 2021

    @wismill
    CollaboratorAuthor

    There is a PR, but not yet merged.

  3. adithyaov commented on Dec 20, 2021

    @adithyaov
    Member

    Although not perfect, https://github.com/adithyaov/hindent/tree/composewell-style works for most cases. There are some known cases it does not work for but I manually fix them as it's much easier.

    This is in no way a clean way to solve the problem of formatting though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions