1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

remove symbol

This commit is contained in:
Ayman Nadeem 2018-12-12 15:55:56 -05:00
parent 1764aeb492
commit 062ad8b083
5 changed files with 1 additions and 6 deletions

View File

@ -253,8 +253,6 @@ runString = raiseHandler $ runStringC . interpret
class Show value => AbstractIntro value where
-- | Construct a self-evaluating symbol value.
-- TODO: Should these be interned in some table to provide stronger uniqueness guarantees?
symbol :: Text -> value
-- | Construct an abstract regex value.
regex :: Text -> value

View File

@ -100,7 +100,6 @@ instance AbstractHole Abstract where
instance AbstractIntro Abstract where
integer _ = Abstract
float _ = Abstract
symbol _ = Abstract
regex _ = Abstract
rational _ = Abstract
hash _ = Abstract

View File

@ -183,7 +183,6 @@ instance AbstractHole (Value term address) where
instance (Show address, Show term) => AbstractIntro (Value term address) where
integer = Integer . Number.Integer
float = Float . Number.Decimal
symbol = Symbol
rational = Rational . Number.Ratio
regex = Regex

View File

@ -346,7 +346,6 @@ instance AbstractHole Type where
instance AbstractIntro Type where
integer _ = Int
float _ = Float
symbol _ = Symbol
regex _ = Regex
rational _ = Rational
hash = Hash

View File

@ -215,7 +215,7 @@ instance Ord1 SymbolElement where liftCompare = genericLiftCompare
instance Show1 SymbolElement where liftShowsPrec = genericLiftShowsPrec
instance Evaluatable SymbolElement where
eval _ _ (SymbolElement s) = pure (symbol s)
eval _ _ (SymbolElement s) = string s
instance Tokenize SymbolElement where
tokenize = yield . Run . symbolContent