Skip to content

Fix Newtype instance in test code #14

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

Merged
merged 4 commits into from
Jan 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove parenthesis
  • Loading branch information
JordanMartinez committed Jan 16, 2021
commit b12ba68daa8e3e0ed2766697ede9d1ba59d8177e
4 changes: 2 additions & 2 deletions test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ newtype RecordNewtype = RecordNewtype
{ message :: String }

instance newtypeRecordNewtype ::
(TypeEquals inner { message :: String }
) => Newtype RecordNewtype inner
TypeEquals inner { message :: String }
=> Newtype RecordNewtype inner

message :: forall ty row. TypeEquals row ( message :: String ) => Newtype ty (Record row) => ty -> String
message = unwrap >>> proof >>> _.message
Expand Down