which is a compile error as the List String needs to be wrapped in parenthesis. If the newtype is instead wrapped with a record name:
newtype Foo = Foo { unFoo :: [Text] }
this converts just file as it becomes a record without the Foo Constructor.
I know that writing newtypes without a record name is not best practice, so is this a pattern that we want to support? If not, maybe we should update the README
If you have the following newtype:
it gets converted to the Elm type:
which is a compile error as the
List String
needs to be wrapped in parenthesis. If the newtype is instead wrapped with a record name:this converts just file as it becomes a record without the
Foo
Constructor.I know that writing newtypes without a record name is not best practice, so is this a pattern that we want to support? If not, maybe we should update the README