Skip to content

Set -Wredundant-constraints and fix the errors#3009

Merged
elland merged 10 commits intowireapp:developfrom
lepsa:code-cleanup-constraints
Feb 13, 2023
Merged

Set -Wredundant-constraints and fix the errors#3009
elland merged 10 commits intowireapp:developfrom
lepsa:code-cleanup-constraints

Conversation

@lepsa
Copy link
Contributor

@lepsa lepsa commented Jan 23, 2023

Enabling the redundant constraint warning and cleaning up the resulting errors.

Checklist

  • [:heavy_check_mark:] Add a new entry in an appropriate subdirectory of changelog.d
  • [:heavy_check_mark:] Read and follow the PR guidelines

@CLAassistant
Copy link

CLAassistant commented Jan 23, 2023

CLA assistant check
All committers have signed the CLA.

@akshaymankar akshaymankar added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jan 23, 2023
@lepsa lepsa temporarily deployed to cachix January 23, 2023 11:08 — with GitHub Actions Inactive
@lepsa lepsa temporarily deployed to cachix January 23, 2023 11:08 — with GitHub Actions Inactive
@lepsa lepsa force-pushed the code-cleanup-constraints branch from d6b79db to 53eb9f2 Compare January 24, 2023 05:16
Copy link
Contributor

@elland elland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me 👯, but CI seems unsure.

@lepsa lepsa temporarily deployed to cachix January 24, 2023 12:38 — with GitHub Actions Inactive
@lepsa lepsa temporarily deployed to cachix January 24, 2023 12:38 — with GitHub Actions Inactive
lepsa added 2 commits January 27, 2023 14:52
Disabling the warning in many modules due to HasCallStack or type level
checks
@lepsa lepsa force-pushed the code-cleanup-constraints branch from 53eb9f2 to 575ffcd Compare January 27, 2023 07:20
@lepsa lepsa force-pushed the code-cleanup-constraints branch from a4763e5 to 909fc3d Compare January 30, 2023 04:44
@mdimjasevic
Copy link
Contributor

@lepsa , let me know if you need help with resolving the merge conflicts. I'll be happy to pair on this either on Tuesday or Wednesday this week.


teamContacts :: m [UserId]
teamContacts = screenMemberList =<< getTeamContacts orig
teamContacts = screenMemberList <$> getTeamContacts orig
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sneaky refactor? 😄

import Imports

serialise :: HasCallStack => NativePush -> UserId -> Transport -> IO (Either Failure LT.Text)
serialise :: HasCallStack => NativePush -> UserId -> Transport -> Either Failure LT.Text
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

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

Labels

ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Comments