Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Fix #65: assure incomplete input doesn't pass compilation #211

Closed
wants to merge 58 commits into from

Conversation

felixmulder
Copy link
Contributor

@felixmulder felixmulder commented Feb 16, 2018

Hey @tpolecat - I'm about to board a flight, but putting this up here for some quick discussion.

Currently I'm solving #65 by zipping the lines with the next line mapped to true, if the next line closes the code-block. I then issue an error if the input is incomplete on the last line of the block.

We could also solve this by collecting all the lines in a block and then once the close tag is encountered, perform the interpretation (would perhaps be cleaner) - but I know you're planning to work on doobie some yourself so didn't want to make too much of a rewrite in case you're planning on getting rid off parts of Tut.scala.

Also - tests not added, I'll happily add them in the weekend/Monday if we can proceed with this approach.

Cheers,
Felix

PS (I like that you named the category/syntax package felix, how come? 😄)

larsrh and others added 30 commits August 4, 2017 19:28
…code.

Signed-off-by: Simeon H.K. fitch <fitch@astraea.io>
tpolecat and others added 27 commits February 25, 2018 13:32
I had an issue where I had a bunch of warnings when running tut with
the Tpolecat's scalaOptions! I took the options from:
https://tpolecat.github.io/2017/04/25/scalac-flags.html

Fortunately, in the FAQ, I could find a way to work around that. But
the flag for unused import in the FAQ is different from the one I had
in my options: `-Ywarn-unused-import` vs `-Ywarn-unused:imports`

It took me way too long to figure that out, so here it is for others like
me.
Docs: scalacOptions for unused imports
@felixmulder
Copy link
Contributor Author

Realized this was against the wrong branch 🐶

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants