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

Remove Dhall.X and replace with Data.Void #1172

Merged
merged 13 commits into from
Aug 5, 2019

Conversation

ocharles
Copy link
Member

@ocharles ocharles commented Jul 30, 2019

This commit removes the Dhall.X module and the Dhall.X.X type,
preferring the use of Data.Void.Void. As I'm sure a lot of people are
actually using X, I've added a type-alias type X = Void. However,
pattern matching on X would be a breaking change.

Fixes #1120

This commit removes the Dhall.X module and the Dhall.X.X type,
preferring the use of Data.Void.Void. As I'm sure a lot of people are
actually using X, I've added a type-alias type X = Void. However,
pattern matching on X would be a breaking change.

Fixes dhall-lang#1120.
dhall/src/Dhall/Binary.hs Outdated Show resolved Hide resolved
Copy link
Collaborator

@Gabriella439 Gabriella439 left a comment

Choose a reason for hiding this comment

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

Looks good! I think we just need to fix dhall-nix to use absurd instead of pattern matching

@@ -52,6 +52,8 @@ import qualified Dhall.Set
import qualified Dhall.Pretty.Internal
import qualified Dhall.Util

type X = Void
Copy link
Collaborator

Choose a reason for hiding this comment

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

A bit of documentation for why we have this type alias would be good.

Also: Do we want to keep it forever, or are we going to deprecate it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@sjakobi: We'll eventually deprecate it

@mergify mergify bot merged commit 4a93c25 into dhall-lang:master Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace the X newtype with an empty data type?
4 participants