Copyright | (C) 2017 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Ryan Scott |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | GHC2021 |
Data.String.Singletons
Contents
Description
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 (FromString t :: a)
- data FromStringSym0 (a1 :: TyFun Symbol a)
- type family FromStringSym1 (a6989586621680338575 :: Symbol) :: a where ...
Documentation
Associated Types
type FromString (arg :: Symbol) :: a Source #
Instances
PIsString Symbol Source # | |||||
Defined in Data.String.Singletons Associated Types
| |||||
PIsString (Identity a) Source # | |||||
Defined in Data.String.Singletons | |||||
PIsString (Const a b) Source # | |||||
Defined in Data.String.Singletons |
class SIsString a where Source #
Methods
sFromString :: forall (t :: Symbol). Sing t -> Sing (FromString t :: a) Source #
Instances
SIsString Symbol Source # | |
Defined in Data.String.Singletons Methods sFromString :: forall (t :: Symbol). Sing t -> Sing (FromString t :: Symbol) Source # | |
SIsString a => SIsString (Identity a) Source # | |
Defined in Data.String.Singletons Methods sFromString :: forall (t :: Symbol). Sing t -> Sing (FromString t :: Identity a) Source # | |
SIsString a => SIsString (Const a b) Source # | |
Defined in Data.String.Singletons Methods sFromString :: forall (t :: Symbol). Sing t -> Sing (FromString t :: Const a b) Source # |
Defunctionalization symbols
data FromStringSym0 (a1 :: TyFun 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 Methods suppressUnusedWarnings :: () # | |
type Apply (FromStringSym0 :: TyFun Symbol a -> Type) (a6989586621680338575 :: Symbol) Source # | |
Defined in Data.String.Singletons type Apply (FromStringSym0 :: TyFun Symbol a -> Type) (a6989586621680338575 :: Symbol) = FromString a6989586621680338575 :: a |
type family FromStringSym1 (a6989586621680338575 :: Symbol) :: a where ... Source #
Equations
FromStringSym1 a6989586621680338575 = FromString a6989586621680338575 :: a |