typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
410 stars 44 forks source link

RewriteRules should not be a case class #484

Closed jenshalm closed 1 year ago

jenshalm commented 1 year ago

This type captures partial functions and does not naturally support structural equality.

The copy method is not essential either, as it's a type that is commonly just constructed once and then passed to the Laika setup APIs. If needed, multiple instances can be constructed and combined with ++.