You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran into something I could not figure out.
Using 0.14.0 of deriving published under com.fommil, the following code works fine.
With 1.0 under org.scalaz it throws an error.
Note that the error happens on any derived typeclass, this one uses scalaz.Equal as an example:
import scalaz.{ Equal, Scalaz, Show }
import Scalaz._
import blabla.common.refined.scalaz._
package object foo {
type ShortString = String Refined (NonEmpty And MaxSize[W.255.T])
object ShortString extends RefinedTypeOps[ShortString, String]
type ShortUpperCaseString = String Refined (NonEmpty And MaxSize[W.255.T] And Forall[UpperCase])
object ShortUpperCaseString extends RefinedTypeOps[ShortUpperCaseString, String]
type IPAddress = String Refined (IPv4 Or IPv6)
object IPAddress extends RefinedTypeOps[IPAddress, String]
type Source = ShortString
type Client = ShortUpperCaseString
type Hostname = NonEmptyString
type Username = NonEmptyString
type ProcessName = NonEmptyString
type Date = ISO8601
type Command = NonEmptyString
type Path = NonEmptyString
type ServerName = NonEmptyString
type Group = ShortString
type ProcessId = String Refined Uuid
type SegmentId = HexString
type ModelConfigUrl = String Refined Url
type BsDecoded = NonEmptyString
type BsScore = Double Refined (NonNegative And LessEqual[W.1.0.T])
type BsVersion = ShortString
I just ran into something I could not figure out.
Using 0.14.0 of deriving published under
com.fommil
, the following code works fine.With 1.0 under
org.scalaz
it throws an error.Note that the error happens on any derived typeclass, this one uses
scalaz.Equal
as an example:Error:
Flip open code
The text was updated successfully, but these errors were encountered: