Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type IdConversionErr (a :: k) = ((Text "Conversion of the same type (`" :<>: ShowType a) :<>: Text "`)") :<>: Text " is disabled by default. Please use convert' if you want to enable it." Source #
class To tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => To src src Source # | |
Defined in Data.Convert2.Class | |
To1 tgt src => To tgt (src t) Source # | |
Defined in Data.Convert2.Class |
class To1 tgt src where Source #
Instances
To2 tgt src => To1 tgt (src t :: k2 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => To1 (src t1) (src :: k -> Type) Source # | |
Defined in Data.Convert2.Class |
class To2 tgt src where Source #
Instances
To3 tgt src => To2 tgt (src t :: k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => To2 (src t1 t2) (src :: k1 -> k2 -> Type) Source # | |
Defined in Data.Convert2.Class |
class To3 tgt src where Source #
Instances
To4 tgt src => To3 tgt (src t :: k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => To3 (src t1 t2 t3) (src :: k1 -> k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class |
class To4 tgt src where Source #
Instances
To5 tgt src => To4 tgt (src t :: k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => To4 (src t1 t2 t3 t4) (src :: k1 -> k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class |
class To5 tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => To5 (src t1 t2 t3 t4 t5) (src :: k1 -> k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class |
class From tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => From src src Source # | |
Defined in Data.Convert2.Class | |
From1 tgt src => From tgt (src t) Source # | |
Defined in Data.Convert2.Class |
class From1 tgt src where Source #
Instances
From2 tgt src => From1 tgt (src t :: k2 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => From1 (src t1) (src :: k -> Type) Source # | |
Defined in Data.Convert2.Class |
class From2 tgt src where Source #
Instances
From3 tgt src => From2 tgt (src t :: k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => From2 (src t1 t2) (src :: k1 -> k2 -> Type) Source # | |
Defined in Data.Convert2.Class |
class From3 tgt src where Source #
Instances
From4 tgt src => From3 tgt (src t :: k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => From3 (src t1 t2 t3) (src :: k1 -> k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class |
class From4 tgt src where Source #
Instances
From5 tgt src => From4 tgt (src t :: k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => From4 (src t1 t2 t3 t4) (src :: k1 -> k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class |
class From5 tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => From5 (src t1 t2 t3 t4 t5) (src :: k1 -> k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo src src Source # | |
Defined in Data.Convert2.Class | |
UnsafeTo1 tgt src => UnsafeTo tgt (src t) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo1 tgt src where Source #
Instances
UnsafeTo2 tgt src => UnsafeTo1 tgt (src t :: k2 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo1 (src t1) (src :: k -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo2 tgt src where Source #
Instances
UnsafeTo3 tgt src => UnsafeTo2 tgt (src t :: k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo2 (src t1 t2) (src :: k1 -> k2 -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo3 tgt src where Source #
Instances
UnsafeTo4 tgt src => UnsafeTo3 tgt (src t :: k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo3 (src t1 t2 t3) (src :: k1 -> k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo4 tgt src where Source #
Instances
UnsafeTo5 tgt src => UnsafeTo4 tgt (src t :: k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo4 (src t1 t2 t3 t4) (src :: k1 -> k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo5 tgt src where Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => UnsafeTo5 (src t1 t2 t3 t4 t5) (src :: k1 -> k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class |
class UnsafeTo1' tgt src where Source #
unsafeTo1' :: forall t1. src t1 -> tgt Source #
class UnsafeTo2' tgt src where Source #
unsafeTo2' :: forall t1 t2. src t1 t2 -> tgt Source #
class UnsafeTo3' tgt src where Source #
unsafeTo3' :: forall t1 t2 t3. src t1 t2 t3 -> tgt Source #
class UnsafeTo4' tgt src where Source #
unsafeTo4' :: forall t1 t2 t3 t4. src t1 t2 t3 t4 -> tgt Source #
class UnsafeTo5' tgt src where Source #
unsafeTo5' :: forall t1 t2 t3 t4 t5. src t1 t2 t3 t4 t5 -> tgt Source #
class UnsafeFrom tgt src where Source #
unsafeFrom :: tgt -> src Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom src src Source # | |
Defined in Data.Convert2.Class unsafeFrom :: src -> src Source # | |
UnsafeFrom1 tgt src => UnsafeFrom tgt (src t) Source # | |
Defined in Data.Convert2.Class unsafeFrom :: tgt -> src t Source # |
class UnsafeFrom1 tgt src where Source #
unsafeFrom1 :: forall t1. tgt -> src t1 Source #
Instances
UnsafeFrom2 tgt src => UnsafeFrom1 tgt (src t :: k2 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom1 :: tgt -> src t t1 Source # | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom1 (src t1) (src :: k -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom1 :: src t1 -> src t10 Source # |
class UnsafeFrom2 tgt src where Source #
unsafeFrom2 :: forall t1 t2. tgt -> src t1 t2 Source #
Instances
UnsafeFrom3 tgt src => UnsafeFrom2 tgt (src t :: k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom2 :: tgt -> src t t1 t2 Source # | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom2 (src t1 t2) (src :: k1 -> k2 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom2 :: src t1 t2 -> src t10 t20 Source # |
class UnsafeFrom3 tgt src where Source #
unsafeFrom3 :: forall t1 t2 t3. tgt -> src t1 t2 t3 Source #
Instances
UnsafeFrom4 tgt src => UnsafeFrom3 tgt (src t :: k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom3 :: tgt -> src t t1 t2 t3 Source # | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom3 (src t1 t2 t3) (src :: k1 -> k2 -> k3 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom3 :: src t1 t2 t3 -> src t10 t20 t30 Source # |
class UnsafeFrom4 tgt src where Source #
unsafeFrom4 :: forall t1 t2 t3 t4. tgt -> src t1 t2 t3 t4 Source #
Instances
UnsafeFrom5 tgt src => UnsafeFrom4 tgt (src t :: k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom4 :: tgt -> src t t1 t2 t3 t4 Source # | |
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom4 (src t1 t2 t3 t4) (src :: k1 -> k2 -> k3 -> k4 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom4 :: src t1 t2 t3 t4 -> src t10 t20 t30 t40 Source # |
class UnsafeFrom5 tgt src where Source #
unsafeFrom5 :: forall t1 t2 t3 t4 t5. tgt -> src t1 t2 t3 t4 t5 Source #
Instances
(TypeError (IdConversionErr src) :: Constraint) => UnsafeFrom5 (src t1 t2 t3 t4 t5) (src :: k1 -> k2 -> k3 -> k4 -> k5 -> Type) Source # | |
Defined in Data.Convert2.Class unsafeFrom5 :: src t1 t2 t3 t4 t5 -> src t10 t20 t30 t40 t50 Source # |
class UnsafeFrom' tgt src where Source #
unsafeFrom' :: tgt -> src Source #
class UnsafeFrom1' tgt src where Source #
unsafeFrom1' :: forall t1. tgt -> src t1 Source #
class UnsafeFrom2' tgt src where Source #
unsafeFrom2' :: forall t1 t2. tgt -> src t1 t2 Source #
class UnsafeFrom3' tgt src where Source #
unsafeFrom3' :: forall t1 t2 t3. tgt -> src t1 t2 t3 Source #
class UnsafeFrom4' tgt src where Source #
unsafeFrom4' :: forall t1 t2 t3 t4. tgt -> src t1 t2 t3 t4 Source #
class UnsafeFrom5' tgt src where Source #
unsafeFrom5' :: forall t1 t2 t3 t4 t5. tgt -> src t1 t2 t3 t4 t5 Source #
unsafeConvert :: forall tgt src. UnsafeTo tgt src => src -> tgt Source #
unsafeConvert1 :: forall tgt src t1. UnsafeTo1 tgt src => src t1 -> tgt Source #
unsafeConvert2 :: forall tgt src t1 t2. UnsafeTo2 tgt src => src t1 t2 -> tgt Source #
unsafeConvert' :: forall tgt src. UnsafeTo' tgt src => src -> tgt Source #
unsafeConvert1' :: forall tgt src t1. UnsafeTo1' tgt src => src t1 -> tgt Source #
unsafeConvert2' :: forall tgt src t1 t2. UnsafeTo2' tgt src => src t1 t2 -> tgt Source #