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
As you can see, modelName follows model. Then, I tried adding the following to mlQuoter (i.e moduleQuoter customTypes):
...
loadModel : modelName -> model := ###!loadModelFun###;
This led to the following compile-time exception:
src/Inferno/ML/Module/Prelude.hs:192:13: error:
• Error at line 252 column 3
unexpected 'l'
expecting one of the following:
∙ "module"
∙ end of input
• In the quasi-quotation:
[mlQuoter|
...
The error message misleadingly implies that there is a parse error; however, the problem is that modelName follows model, I assume this leads to some ambiguity. Changing the order of the customTypes to [..., "modelName", "model", ...] resolved the error, although this was very difficult to debug!
The text was updated successfully, but these errors were encountered:
It seems that if custom type names partially overlap, using
moduleQuoter
with the custom types throws a very misleading errorI discovered this while trying to add a
modelName
type to theinferno-ml
Prelude. I first tried:As you can see,
modelName
followsmodel
. Then, I tried adding the following tomlQuoter
(i.emoduleQuoter customTypes
):This led to the following compile-time exception:
The error message misleadingly implies that there is a parse error; however, the problem is that
modelName
followsmodel
, I assume this leads to some ambiguity. Changing the order of thecustomTypes
to[..., "modelName", "model", ...]
resolved the error, although this was very difficult to debug!The text was updated successfully, but these errors were encountered: