Skip to content

Replace synonyms in instance constraints - #2973

Merged
paf31 merged 1 commit into
purescript:masterfrom
LiamGoodacre:fix/2972
Jul 7, 2017
Merged

Replace synonyms in instance constraints#2973
paf31 merged 1 commit into
purescript:masterfrom
LiamGoodacre:fix/2972

Conversation

@LiamGoodacre

Copy link
Copy Markdown
Member

For #2972

@paf31 paf31 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread src/Language/PureScript/TypeChecker.hs Outdated
checkOrphanInstance dictName className typeClass tys
_ <- traverseTypeInstanceBody checkInstanceMembers body
let dict = TypeClassDictionaryInScope (Qualified (Just moduleName) dictName) [] className tys (Just deps)
deps' <- traverse (overConstraintArgs $ traverse replaceAllTypeSynonyms) deps

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like that these compose like lenses

(traverse . overConstraintArgs . traverse) replaceAllTypeSynonyms deps

😃

@paf31
paf31 merged commit ee66e0d into purescript:master Jul 7, 2017
@LiamGoodacre
LiamGoodacre deleted the fix/2972 branch July 7, 2017 21:21
paf31 added a commit that referenced this pull request Jul 10, 2017
paf31 added a commit that referenced this pull request Jul 10, 2017
…2985)

* Revert "Fix child decl ordering (#2984)"

This reverts commit 7fdd39d.

* Revert "Only build master and semver tags in Travis (#2982)"

This reverts commit c41a7a4.

* Revert "Include comments in child declarations in HTML docs (#2981)"

This reverts commit ad6166f.

* Revert "Solve RowToList (#2945)"

This reverts commit 0e2d820.

* Revert "Fix links to type operators in HTML docs (#2979)"

This reverts commit 5fe26f2.

* Revert "Re-evaluate REPL globs during :reload (#2978)"

This reverts commit 50e1c68.

* Revert "[purs ide] Collect data constructors (#2976)"

This reverts commit c965f35.

* Revert "Replace synonyms in instance constraints (#2973)"

This reverts commit ee66e0d.

* Revert "Require single-method instance declarations to be indented (#2965)"

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants