Skip to content

Data.Lens._Newtype is compiling incorrectly #28

@Renegatto

Description

@Renegatto

The usage of Data.Lens._Newtype includes _Newtype in the output, but it compiles incorrectly into:

M.MyModule__Newtype = M.Data_Profunctor_dimap(dictProfunctor)(M.Safe_Coerce_coerce())

where dictProfunctor is undefined in the output lua module.
I suppose it should have compiled into something like

M.MyModule__Newtype = function (dictProfunctor)
  return M.Data_Profunctor_dimap(dictProfunctor)(M.Safe_Coerce_coerce())
end

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions