symbol-0.2.4.1: A 'Symbol' type for fast symbol comparison.
Copyright(c) Harvard University 2009-2011
: (c) Geoffrey Mainland 2011-2014
LicenseBSD-style
MaintainerGeoffrey Mainland <mainland@cs.drexel.edu>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Symbol.Unsafe

Description

 
Synopsis

Documentation

data Symbol Source #

Constructors

Symbol !Int !String

Unique identifier and the string itself

Instances

Instances details
Data Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Symbol -> c Symbol #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Symbol #

toConstr :: Symbol -> Constr #

dataTypeOf :: Symbol -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Symbol) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Symbol) #

gmapT :: (forall b. Data b => b -> b) -> Symbol -> Symbol #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Symbol -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Symbol -> r #

gmapQ :: (forall d. Data d => d -> u) -> Symbol -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Symbol -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Symbol -> m Symbol #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Symbol -> m Symbol #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Symbol -> m Symbol #

IsString Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

Methods

fromString :: String -> Symbol #

Read Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

Show Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

Eq Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

Methods

(==) :: Symbol -> Symbol -> Bool #

(/=) :: Symbol -> Symbol -> Bool #

Ord Symbol Source # 
Instance details

Defined in Data.Symbol.Unsafe

intern :: String -> Symbol Source #

Intern a string to produce a Symbol.

unintern :: Symbol -> String Source #

Return the String associated with a Symbol.