Exception in thread "MillServerActionRunner" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at mill.define.Module$Internal.$anonfun$reflect$4(Module.scala:73) at scala.collection.ArrayOps$WithFilter.map(ArrayOps.scala:90) at mill.define.Module$Internal.reflect(Module.scala:64) at mill.define.Module$Internal.reflectAll(Module.scala:76)
This file contains hidden or 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
| import zio.prelude._ | |
| sealed trait ValueCase[+TA,+VA,+Self] { self => } | |
| object ValueCase { | |
| // Would have cases defined | |
| type Curry[A[+_, +_, +_], T, U] = { type Result[+V] = A[T, U, V] } | |
| implicit def ValueCaseForEach[TA, VA]: ForEach[Curry[ValueCase, TA, VA]#Result]] = ??? | |
| } |
This file contains hidden or 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
| package datadictionary | |
| import datadictionary.Field.Modifier | |
| type AnyField = Field[?, Nothing, Nothing] | |
| type AnyFieldHavingKeyOf[K <: Field.FieldKey] = Field[K, Nothing, Nothing] | |
| final case class Field[Key <: Field.FieldKey, +A, +Attribs](key: Key) extends Serializable: | |
| def asConstant(using Attribs <:< Modifier.Assignable) = ??? | |
| override def toString: String = key |
This file contains hidden or 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
| package zio.integration.stream | |
| import zio._ | |
| import zio.stream._ | |
| object StreamOps extends StreamOps | |
| trait StreamOps { | |
| implicit class ZStreamOps[R,E,A](self:ZStream[R,E,A]) { | |
| def split(p : A => UIO[Boolean]) : ZManaged[R, E, (ZStream[R,E,A],ZStream[R,E,A])] = |
This file contains hidden or 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
| configurations { | |
| scalaCompilerPlugin | |
| } | |
| dependencies { | |
| // Use Scala 2.11 in our library project | |
| compile 'org.scala-lang:scala-library:2.12.6' | |
| compile 'io.estatico:newtype_2.12:0.4.2' | |
| scalaCompilerPlugin 'org.scalamacros:paradise_2.12.6:2.1.1' |
This file contains hidden or 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
| tasks.withType(ScalaCompile){ | |
| // Map plugin jars to -Xplugin parameter | |
| List<String> parameters = | |
| configurations.scalaCompilerPlugin.files.collect { | |
| '-Xplugin:'+ it.absolutePath | |
| } | |
| // Add existing parameters | |
| List<String> existingParameters = scalaCompileOptions.additionalParameters | |
| if (existingParameters) { |
This file contains hidden or 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
| plugins { | |
| id 'scala' | |
| } | |
| configurations { | |
| scalaCompilerPlugin | |
| } | |
| dependencies { |
This file contains hidden or 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
| package experiments | |
| import experiments.expectation.EquivalenceExpectationResult | |
| import shapeless._ | |
| trait EquivalenceExpectation[-In] { | |
| type Result | |
| def apply(actual:In, expected:In):Result | |
| } |
This file contains hidden or 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
| namespace FSharp.EventSourcing | |
| open System | |
| open System.Threading.Tasks | |
| open Orleankka | |
| open Orleankka.FSharp | |
| open Strategies.Contracts | |
| open System.Collections |
This file contains hidden or 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
| #Requires -Version 4.0 | |
| $ErrorActionPreference = 'Stop' | |
| # Ignoring progress stream is vital to keep the performance | |
| # of Invoke-WebRequest decent in Teamcity | |
| $ProgressPreference = 'SilentlyContinue' | |
| function global:RestoreBuildLevelPackages { | |
| # Download paket.exe. | |
| # Use --prefer-nuget to get it from nuget.org first as it is quicker (compressed .nupkg) |