Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings from GHC 8.4.4 #149

Closed
jiegillet opened this issue Nov 15, 2018 · 0 comments
Closed

Warnings from GHC 8.4.4 #149

jiegillet opened this issue Nov 15, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jiegillet
Copy link
Collaborator

jiegillet commented Nov 15, 2018

Since switching to GHC 8.4.4, there's been a bunch of new warnings, especially warning: [-Wpartial-fields] Use of partial record field selector because of data structures like

data KeysDiff
    = Equal
    | FstIsPref { diff :: !Key}

since you can apply diff to FstIsPref but not Equal.

According to the organization style guide: "Records for data types with multiple constructors are forbidden.", so we should remove the record syntax.

Also a warning about module warning [-Wmissing-export-lists] The export item ‘module Main’ is missing an export list in Playground.hs

@jiegillet jiegillet added the bug Something isn't working label Nov 15, 2018
@jiegillet jiegillet self-assigned this Nov 15, 2018
jiegillet added a commit to jiegillet/tomland that referenced this issue Nov 15, 2018
jiegillet added a commit to jiegillet/tomland that referenced this issue Nov 18, 2018
chshersh pushed a commit that referenced this issue Nov 20, 2018
* [#149] Warnings from GHC 8.4.4

* CHANGELOG

* Added documentation

* Added doc for constructors
@chshersh chshersh added this to the v1.0.0: Public release milestone Nov 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants