Skip to content

Commit

Permalink
Refactoring the handling of data types in LFConversion.hs (#3251)
Browse files Browse the repository at this point in the history
* Add some type signatures to make MonoLocalBinds happy

* Extract applyDataCon function

* rename applyDataCon

* Refactor convertDataCon

* ß reduction

* Delint

* Refactor convertTypeDef

* Rewrite convertTemplateInstanceDef

* pass sanitization function to convertRecordFields

* Extract out the newtype worker definition

* Move mkWorkerName to UtilLF

* Simplify getTag conversion

* Simplify tagToEnum# conversion

* Eliminate Ctors and toCtors

* Reviewer comments
  • Loading branch information
associahedron authored and mergify[bot] committed Oct 31, 2019
1 parent 8baeaf5 commit 8c8cd5f
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 169 deletions.
Loading

0 comments on commit 8c8cd5f

Please sign in to comment.