@@ -25,6 +25,7 @@ data Error
25 | DuplicateSettingOnEffectModule String
25 | DuplicateSettingOnEffectModule String
26 | BadSettingOnEffectModule String
26 | BadSettingOnEffectModule String
27 | NoSettingsOnEffectModule
27 | NoSettingsOnEffectModule
28+ | MissingManagerOnEffectModule String
29 | InfixDuplicate String
30 | InfixDuplicate String
30 | TypeWithoutDefinition String
31 | TypeWithoutDefinition String
@@ -105,15 +106,24 @@ toReport _localizer err =
105 Report.report
106 Report.report
106 "BAD MODULE DECLARATION"
107 "BAD MODULE DECLARATION"
108− "A normal module can expose values, but not register commands and subscriptions."
109+ "A normal module can expose values, but not settings like this."
109 ( Help.reflowParagraph $
110 ( Help.reflowParagraph $
110 "If you want a normal module, just remove this stuff. If you want to create\
111 "If you want a normal module, just remove this stuff. If you want to create\
111 \ an `effect module` you just forgot to use the `effect` keyword. In that\
112 \ an `effect module` you just forgot to use the `effect` keyword. In that\
112− \ case, just change `module` to `effect module` and you should be all set!"
113+ \ case, just change `module` to `effect module` and you should be headed in\
114+ \ the right direction!"
115 SettingsOnForeignModule ->
117 SettingsOnForeignModule ->
116− error "TODO - SettingsOnForeignModule"
118+ Report.report
119+ "BAD MODULE DECLARATION"
121+ "A foreign effect module can expose values, but not have settings like this."
122+ ( Help.reflowParagraph $
123+ "If you want a foreign effect module, just remove this stuff. If you want\
124+ \ to create an `effect module` instead, just change `foreign effect module`\
125+ \ to `effect module` and you should be headed in the right direction!"
118 DuplicateSettingOnEffectModule name ->
128 DuplicateSettingOnEffectModule name ->
119 error "TODO - DuplicateSettingOnEffectModule" name
129 error "TODO - DuplicateSettingOnEffectModule" name
@@ -124,6 +134,9 @@ toReport _localizer err =
124 NoSettingsOnEffectModule ->
134 NoSettingsOnEffectModule ->
125 error "TODO - NoSettingsOnEffectModule"
135 error "TODO - NoSettingsOnEffectModule"
137+ MissingManagerOnEffectModule name ->
138+ error "TODO - NoSettingsOnEffectModule" name
127 InfixDuplicate opName ->
140 InfixDuplicate opName ->
128 Report.report
141 Report.report
129 "INFIX OVERLAP"
142 "INFIX OVERLAP"