dc10.sbt.ctx.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dc10-sbt_3 Show documentation
Show all versions of dc10-sbt_3 Show documentation
Library for use with the `dc10-scala` code generator
package dc10.sbt.ctx
import dc10.sbt.ast.{FileDef, ProjectDef}
import dc10.scala.ErrorF
extension (ctx: List[ProjectDef])
def ext(s: ProjectDef): ErrorF[List[ProjectDef]] =
namecheck(s).map(ctx :+ _)
def namecheck(s: ProjectDef): ErrorF[ProjectDef] =
// TODO
Right(s)
extension (ctx: List[FileDef])
def ext(s: FileDef): ErrorF[List[FileDef]] =
namecheck(s).map(ctx :+ _)
def namecheck(s: FileDef): ErrorF[FileDef] =
// TODO
Right(s)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy