Copyright | (C) 2017 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Ryan Scott |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Defines and exports a promoted and singled version of the IsString
type class from Data.String.
Synopsis
- class PIsString a where
- type FromString (arg :: Symbol) :: a
- class SIsString a where
- sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t :: a)
- data FromStringSym0 :: (~>) Symbol a
- type family FromStringSym1 (a6989586621681291725 :: Symbol) :: a where ...
Documentation
type FromString (arg :: Symbol) :: a Source #
Instances
PIsString Symbol Source # | |
Defined in Data.String.Singletons type FromString arg :: a Source # | |
PIsString (Identity a) Source # | |
Defined in Data.String.Singletons type FromString arg :: a Source # | |
PIsString (Const a b) Source # | |
Defined in Data.String.Singletons type FromString arg :: a Source # |
class SIsString a where Source #
sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t :: a) Source #
Instances
SIsString Symbol Source # | |
Defined in Data.String.Singletons sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t) Source # | |
SIsString a => SIsString (Identity a) Source # | |
Defined in Data.String.Singletons sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t) Source # | |
SIsString a => SIsString (Const a b) Source # | |
Defined in Data.String.Singletons sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t) Source # |
Defunctionalization symbols
data FromStringSym0 :: (~>) Symbol a Source #
Instances
SIsString a => SingI (FromStringSym0 :: TyFun Symbol a -> Type) Source # | |
Defined in Data.String.Singletons | |
SuppressUnusedWarnings (FromStringSym0 :: TyFun Symbol a -> Type) Source # | |
Defined in Data.String.Singletons suppressUnusedWarnings :: () # | |
type Apply (FromStringSym0 :: TyFun Symbol k2 -> Type) (a6989586621681291725 :: Symbol) Source # | |
Defined in Data.String.Singletons type Apply (FromStringSym0 :: TyFun Symbol k2 -> Type) (a6989586621681291725 :: Symbol) = FromString a6989586621681291725 :: k2 |
type family FromStringSym1 (a6989586621681291725 :: Symbol) :: a where ... Source #
FromStringSym1 a6989586621681291725 = FromString a6989586621681291725 |