singletons-2.5.1: A framework for generating singleton types

Copyright(C) 2017 Ryan Scott
LicenseBSD-style (see LICENSE)
MaintainerRyan Scott
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Singletons.Prelude.IsString

Contents

Description

Defines and exports a promoted and singled version of the IsString type class from Data.String.

Synopsis

Documentation

class PIsString (a :: Type) #

Associated Types

type FromString (arg :: Symbol) :: a #

Instances
PIsString Symbol # 
Instance details

Defined in Data.Singletons.Prelude.IsString

Associated Types

type FromString arg :: a #

PIsString (Identity a) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

Associated Types

type FromString arg :: a #

PIsString (Const a b) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

Associated Types

type FromString arg :: a #

class SIsString a where #

Methods

sFromString :: forall (t :: Symbol). Sing t -> Sing (Apply FromStringSym0 t :: a) #

Instances
SIsString Symbol # 
Instance details

Defined in Data.Singletons.Prelude.IsString

SIsString a => SIsString (Identity a) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

SIsString a => SIsString (Const a b) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

Defunctionalization symbols

data FromStringSym0 :: forall a6989586621681248117. (~>) Symbol a6989586621681248117 #

Instances
SIsString a => SingI (FromStringSym0 :: TyFun Symbol a -> Type) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

SuppressUnusedWarnings (FromStringSym0 :: TyFun Symbol a6989586621681248117 -> Type) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

type Apply (FromStringSym0 :: TyFun Symbol k2 -> Type) (arg6989586621681248153 :: Symbol) # 
Instance details

Defined in Data.Singletons.Prelude.IsString

type Apply (FromStringSym0 :: TyFun Symbol k2 -> Type) (arg6989586621681248153 :: Symbol) = (FromString arg6989586621681248153 :: k2)

type FromStringSym1 (arg6989586621681248153 :: Symbol) = FromString arg6989586621681248153 #