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

Fix Inject instance for lists #1261

Merged
merged 3 commits into from
Aug 30, 2019
Merged

Fix Inject instance for lists #1261

merged 3 commits into from
Aug 30, 2019

Conversation

Gabriella439
Copy link
Collaborator

Fixes #1254

This also adds tests for conversions back and forth between Dhall and
Haskell values

Fixes #1254

This also adds tests for conversions back and forth between Dhall and
Haskell values
Copy link
Collaborator

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

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

Lovely tests! :)

, "2" `correspondsTo` (2 :: Natural)
, "+2" `correspondsTo` (2 :: Integer)
, "2.0" `correspondsTo` (2.0 :: Double)
-- , "2.0" `correspondsTo` (2.0 :: Scientific)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this commented out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Missing instance, which I can add for symmetry

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment regarding the missing instance?

-- , "2.0" `correspondsTo` (2.0 :: Scientific)
, "\"ABC\"" `correspondsTo` ("ABC" :: Data.Text.Text)
, "\"ABC\"" `correspondsTo` ("ABC" :: Data.Text.Lazy.Text)
-- , "\"ABC\"" `correspondsTo` ("ABC" :: String)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dito.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

, "2" `correspondsTo` (2 :: Natural)
, "+2" `correspondsTo` (2 :: Integer)
, "2.0" `correspondsTo` (2.0 :: Double)
-- , "2.0" `correspondsTo` (2.0 :: Scientific)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment regarding the missing instance?

-- , "2.0" `correspondsTo` (2.0 :: Scientific)
, "\"ABC\"" `correspondsTo` ("ABC" :: Data.Text.Text)
, "\"ABC\"" `correspondsTo` ("ABC" :: Data.Text.Lazy.Text)
-- , "\"ABC\"" `correspondsTo` ("ABC" :: String)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same here.

... so that we don't need to comment them out!
@Gabriella439
Copy link
Collaborator Author

Actually, I realized that it was easier to just add the missing instances, so I'll do that

@mergify mergify bot merged commit dbcfe70 into master Aug 30, 2019
@mergify mergify bot deleted the gabriel/fix_inject_list branch August 30, 2019 04:16
@jneira
Copy link
Collaborator

jneira commented Aug 30, 2019

Thanks for the quick fix!

@Gabriella439
Copy link
Collaborator Author

@jneira: You're welcome! 🙂

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.

Error injecting and interpreting lists
3 participants