Skip to content

Drop code compatibility for GHC < 7.10 #438

Open
@meiersi

Description

@meiersi

I've just compiled ghcjs:master using stack and this worked great. It also means that I can use ghcid --command='ghci' to get a really quick iteration cycle going for working on GHCJS. As a first contribution, I'd be interested in getting rid of the many warnings that stem from code that is in there only for supporting older GHC's (Control.Applicative I'm looking at you and your ilk ;-). Would a PR that reduces the warning noise be sensible? Or do you have other plans @luite?

(Note that there also seem to be a few important warnings about missing pattern matches and unused identifiers that I'd leave in for @luite to look at.)

Activity

luite

luite commented on Oct 28, 2015

@luite
Member

I have to admit that I haven't really been paying much attention to warnings, and the cleanliness of the code in general, due to most of the work being on the ghcjs-base library and the rts in shims, plus new codegen stuff.

I wouldn't mind a patch, but any significant changes in the code generator would require a reboot anyway. Maybe changing the warning flags is a more efficient way to get there, for now?

meiersi

meiersi commented on Oct 28, 2015

@meiersi
Author

I can understand you are currently focusing on different parts. However, I don't fully understand your answer.

  1. Is it OK to drop compatibility for GHC < 7.10 in the master branch?
  2. Does your work on the "codegen stuff" invalidate any changes that I'd prepare for the master branch? If yes, what branch should/could I help you out with getting these menial things like -Wall cleaning done?
meiersi

meiersi commented on Oct 28, 2015

@meiersi
Author

A related question: is it OK if a patch also drops trailing whitespace in the files I edit? Or would you like a separate PR that drops all trailing whitespace on master? Or should I avoid dropping any trailing whitespace?

luite

luite commented on Oct 28, 2015

@luite
Member
  1. Yes, the only branch compatible with 7.8 is old-base
  2. Probably won't cause issues, I'm not quite sure what code is replaced.

Go ahead and drop trailing whitespace

cartazio

cartazio commented on Apr 18, 2017

@cartazio
Member

@meiersi @luite a) does this cleanup still make sense to merge in? b) how can i help?

meiersi-da

meiersi-da commented on Apr 18, 2017

@meiersi-da

I haven't been working on this anymore; and don't have time to update the PR at the moment. @luite your call :)

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

      Drop code compatibility for GHC < 7.10 · Issue #438 · ghcjs/ghcjs