Open ghost opened 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Hi Will,
You need to add backslash, \ , at the end of each line, except the last line, then hit enter, in order to be able to add multi-lines all at once.
Is that what your doing?
You should be able to copy and paste the code as is below and then just hit enter to allow multi-lines in elm-repl. Let me know if this works for you.
narrowDown input output functions =\
let\
tester input output function =\
-- (function input) == output\
function input == output\
in\
List.filter (tester input output) functions
Sorry, I should have said I know about the backslashes! At least without a tool, it's a chore to have to do that.
For reference, the main Haskell REPL, ghci, handles multiline input like so
- Begin a new line with :{
- Type in your code. Press enter when you need a new line.
- Type :} to end the multi-line input.
Source: https://en.wikibooks.org/wiki/Haskell/Using_GHCi_effectively#Multi-line_Input
For reference, the main Scala REPL, handles multiline input like so
1. Begin a new line with :paste
2. Type in your code (or paste). Press enter when you need a new line.
3. Type ^D to end the multi-line input.
I'd like to copy and paste this code into the REPL:
But when I do each line is executed individually so there are lots of syntax errors.