lspitzner / brittany

haskell source code formatter
GNU Affero General Public License v3.0
691 stars 67 forks source link

Add support for GHC 8.10.1 #312

Closed lukel97 closed 4 years ago

lukel97 commented 4 years ago

Continuing the work of @jneira in #305 , rebased

codygman commented 4 years ago

Related to #269

tfausak commented 4 years ago

This doesn't build with GHC 8.4, 8.2, or 8.0. Do you know if it's an easy fix or not?

jneira commented 4 years ago

@tfausak maybe i am not interpreting those builds correctly but they seem fail for ghc-8.10.2 and no for other versions??

EDIT: oh, i've just see you dropped support for those versions in the pr

jneira commented 4 years ago

Afaics all changes in this pr was made under cpp conditions so it should not interfere with older ghc versions (module some error)

tfausak commented 4 years ago

I think some of the CPP changes looked like this:

# if MIN_VERSION_ghc(8, 10, 1)
-- nothing
# else
some existing code
# endif
jneira commented 4 years ago

Yeah, but it should no make fail previous ghc versions but make ghc-8.10.1 fail, no? (sorry if i am wrong i am only gathering at the code without even compiling it)

Can you share the errors that were thrown for earlier versions? are there in the travis failed build for this pr?

tfausak commented 4 years ago

Sorry, my comment wasn't very helpful. Also apparently the links I shared earlier don't work anymore. I probably shouldn't have rebased #324. Here are actually usable links to the build failures:

tfausak commented 4 years ago

I'm closing this in favor of #324, which includes these commits. Please let me know if I've missed something!