markandrus / twilio-haskell

Twilio library for Haskell
BSD 3-Clause "New" or "Revised" License
38 stars 39 forks source link

Contributing - Add Configuration Files #50

Open StevenXL opened 6 years ago

StevenXL commented 6 years ago

Hello!

Would it be possible to add editor configuration files to the project so that it is easy to keep a consistent style?

I've seen Add .hlint, .stylish-haskell, and .editorconfig on a separate project.

markandrus commented 6 years ago

Hi @StevenXL,

I would be open to it, especially if these tools can be integrated into our .travis.yml. I know HLint, but I don't know what .editorconfig is. Does stylish-haskell have a command-line tool?

Thanks, Mark

StevenXL commented 6 years ago

Hi Mark,

I think some of these files can be integrated into the .travis.yml. https://github.com/jaspervdj/stylish-haskell is a command line tool, so I think we'd be able to set up TravisCI to download that and run in on the source files. stylish-haskell does less formatting than hlint, for example. There is a few things that it cares about (import statements, pragmas, case alignment, for example).

.editorconfig is a file that can be used across editors, provided that the editor has either built-in support or an installed plug-in to look for the file.

I'll start off with a PR with the config files and see what your thoughts are on that.