You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why the compiler requires the port keyword to be present in modules to be present (and inversely to be absent when none are defined), but I think the formatter would be a great place to fix this issue automatically.
The idea would basically be to automatically add or remove the port keyword based on the presence of ports in the file. This would remove the one feedback cycle with the compiler and the need to resolve this manually.
Examples
port moduleAexposing (..)
a =1-->moduleAexposing (..)
a =1
moduleAexposing (..)
port toJS:String->Cmdmsg-->port moduleAexposing (..)
port toJS:String->Cmdmsg
The text was updated successfully, but these errors were encountered:
I don't know why the compiler requires the
port
keyword to be present in modules to be present (and inversely to be absent when none are defined), but I think the formatter would be a great place to fix this issue automatically.The idea would basically be to automatically add or remove the
port
keyword based on the presence of ports in the file. This would remove the one feedback cycle with the compiler and the need to resolve this manually.Examples
The text was updated successfully, but these errors were encountered: