shithub: MicroHs

Download patch

ref: cc5f799ee6b51ce2859a74dbcd36b484d805732c
parent: 9f4e5c889e91baa8fa3bfc63fdd596682a5c0557
author: Lennart Augustsson <lennart@augustsson.net>
date: Mon Oct 21 11:58:37 EDT 2024

fix end of file comment but.

--- a/src/MicroHs/Lex.hs
+++ b/src/MicroHs/Lex.hs
@@ -171,7 +171,7 @@
 skipLine :: SLoc -> String -> [Token]
 skipLine loc cs@('\n':_) = lex loc cs
 skipLine loc (_:cs)      = skipLine loc cs
-skipLine   _ []          = []
+skipLine loc []          = lex loc []
 
 -- | Takes a list of tokens and produces a list of tokens. If the first token in
 -- the input list is a TIndent, the input is returned unaltered. Otherwise, a
--