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
trait Coercible[A, B] { | |
def coerce(a: A): B | |
} | |
def coerce[A, B](a: A)(implicit coerceAB: Coercible[A, B]): B = { | |
coerceAB.coerce(a) | |
} | |
trait Newtype[+T] { | |
val value: T |
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
{-# LANGUAGE KindSignatures | |
, PolyKinds | |
, DataKinds | |
, TypeFamilies | |
, TypeOperators | |
, GADTs | |
#-} | |
module IxResourceT where |
NewerOlder