Giter VIP home page Giter VIP logo

Comments (4)

ocramz avatar ocramz commented on May 23, 2024

This is a good suggestion!

https://hackage.haskell.org/package/brittany

Note: brittany is pinned to a given GHC version, since it must parse and emit code for it. This means that it constrains the range of GHC versions we build dh-core with.

For example, to try it out now I used :

stack install brittany --resolver lts-12.0

from dh-core.

Shimuuar avatar Shimuuar commented on May 23, 2024

I don't need datasets but

  1. Requiring installed and configured brittany to make contribution will certainly raise the bar for contributors.

  2. There's no reason to constrain supported GHC version just because autoformatter doesn't. It's possible to drop formatting check from CI for unsupported version

P.S. I'm not big fan of autoformatters for haskell. In my (limited) experience they tend to produce weird layout.

from dh-core.

stites avatar stites commented on May 23, 2024

After sleeping on this, I agree with you, @Shimuuar . The main problem is that datasets is terribly formatted right now; it would be nice to have someone do a cleanup pass for future diffs.

I don't think I've ever had an autoformatting tool that everyone was happy with. Brittany is pretty good for me, but I'm also unsatisfied with some of the defaults. In the aforementioned cleanup pass, if an autoformatter is used we should just save the rules so that they can be reused (or commented on) in case we need to do it again (or periodically). Maybe if dh-core gets a windfall of success adding linting, formatting, and weeding rules to CI should be revisited. No need to do this anytime soon.

from dh-core.

stites avatar stites commented on May 23, 2024

Scanning through this repo -- I think we can close this until further notice.

from dh-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.