dc10.File.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dc10-core_3 Show documentation
Show all versions of dc10-core_3 Show documentation
Code generation tools for Scala
The newest version!
package dc10
import java.nio.file.Path
case class File[A](path: Path, contents: List[A])
object File:
extension [A] (file: File[A])
def addParent(path: Path): File[A] =
file.copy(path = path.resolve(file.path))
case class VirtualFile(path: Path, contents: String)