I'm trying to compile the Elm compiler from source and have run into a strange problem. I've managed to make it build via stack build
successfully. However, when I try stack ghci
it fails at a number of places where foreign
has been used as a variable/binding name. For example:
/Users/saurabhnanda/projects/compiler/builder/src/File/Compile.hs:142:50: error:
parse error on input ‘foreign’
|
142 | makeImports project (Plan.Info _ _ _ clean dirty foreign) =
| ^^^^^^^
Failed, 141 modules loaded.
It seems that foreign
is indeed a reserved keyword. What explains this behaviour, i.e. working in stack build
but throwing a parse-error in stack ghci
?
foreign
is not used anymore in Elm source code, see https://github.com/elm/compiler/pull/1961.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With