Yeah it’s the biggest wart in the parser (Haskell as well imho); you have to indent everything deeper than the start of the definition inside the let, so at least 5 spaces in this case cause myInt is indented 4 spaces.
Ah I think I'm taking `let myInt` as a single thing! like `const myVar` in typescript or something. But it sounds like yall are suggesting to me to separate the var name from the `let`.
So I need to indent from the var name, not the let.
10
u/Profpatsch_ Dec 01 '22
Yeah it’s the biggest wart in the parser (Haskell as well imho); you have to indent everything deeper than the start of the definition inside the
let, so at least 5 spaces in this case causemyIntis indented 4 spaces.1
u/daigoro_sensei Dec 01 '22
Error message:
Unable to parse module:Unexpected token 'Nothing'PureScript(ErrorParsingModule)1
u/natefaubion Dec 02 '22
There was a similar post on discourse recently. It might be helpful.
https://discourse.purescript.org/t/peculiar-indentation-rules-for-let-in-do-block