1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-17 16:47:22 +03:00
mal/haskell
Nicolas Boulenguez e6d41de4d5 load-file: accept empty file or final comment, return nil
Let `load-file` append a new line in case last line contains a
comment.

Also append `nil` so that the return value is predictible. Remove the
existing explicit `nil` from existing sources.

Adapt documentation and tests.
2019-07-28 13:08:05 +02:00
..
tests Tests: move step5 non-TCO tests to per impl. 2016-03-14 23:39:21 -05:00
Core.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
Dockerfile Haskell: update docker image to 7.10.3 2016-10-06 17:55:58 -05:00
Env.hs haskell: make the code more readable and idiomatic. 2019-07-09 00:07:22 +02:00
Makefile haskell: silent GHC warnings 2019-07-09 00:05:25 +02:00
Printer.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
Reader.hs haskell: shorten Reader with Applicative instead of Monad 2019-07-09 00:08:32 +02:00
Readline.hs haskell: drop redundant import, test empty repl line once 2019-07-09 00:08:25 +02:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.hs haskell: drop redundant import, test empty repl line once 2019-07-09 00:08:25 +02:00
step1_read_print.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
step2_eval.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
step3_env.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
step4_if_fn_do.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
step5_tco.hs haskell: remove the need for unsafePerformIO type forced conversion 2019-07-09 00:08:47 +02:00
step6_file.hs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.hs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.hs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.hs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.hs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
Types.hs haskell: make the code more readable and idiomatic. 2019-07-09 00:07:22 +02:00