forked from typelevel/frameless
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move IsXLTuple to Boilerplate.scala, split tests, wip LabelledGeneric…
…Listable Conflicts: build.sbt
- Loading branch information
1 parent
04e733f
commit e312acd
Showing
15 changed files
with
874 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package typedframe | ||
|
||
import shapeless._ | ||
import shapeless.ops.hlist.ToList | ||
import shapeless.ops.record.Keys | ||
|
||
trait LabelledGenericListable[S <: Product] { | ||
def list: Seq[String] | ||
} | ||
|
||
object LabelledGenericListable { | ||
def apply[S <: Product](implicit t: LabelledGenericListable[S]): LabelledGenericListable[S] = t | ||
|
||
implicit def labelledGenericListable[S <: Product, B <: HList, Y <: HList] | ||
(implicit | ||
b: LabelledGeneric.Aux[S, B], | ||
y: Keys.Aux[B, Y], | ||
o: ToList[Y, Symbol] | ||
): LabelledGenericListable[S] = | ||
new LabelledGenericListable[S] { | ||
val list = y().toList.map(_.name) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import shapeless._ | ||
|
||
package object typedframe { | ||
implicit val TODO: Typeable[Any] = Typeable.anyTypeable | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
log4j.logger.org.apache.spark=ERROR | ||
log4j.logger.Remoting=ERROR | ||
log4j.logger.akka.event.slf4j=ERROR | ||
log4j.logger.org.spark-project.jetty.server=ERROR | ||
log4j.logger.org.apache.spark=ERROR | ||
log4j.logger.com.anjuke.dm=ERROR | ||
log4j.logger.org.eclipse.jetty=ERROR | ||
log4j.logger.org.eclipse.jetty.util.component.AbstractLifeCycle=ERROR | ||
log4j.logger.org.apache.spark.repl.SparkIMain$exprTyper=ERROR | ||
log4j.logger.org.apache.spark.repl.SparkILoop$SparkILoopInterpreter=ERROR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.