Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 53e08b3

Browse files
committed
🔥 the specialization of String in the scope graph.
1 parent f6cd84e commit 53e08b3

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

semantic-core/src/Analysis/ScopeGraph.hs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ instance Monoid Value where
5050

5151
data Semi
5252
= Closure Loc User (Term Core.Core User) User
53-
-- FIXME: Bound String values.
54-
| String Text
5553
| Abstract
5654
deriving (Eq, Ord, Show)
5755

@@ -106,8 +104,7 @@ scopeGraphAnalysis = Analysis{..}
106104
unit = pure mempty
107105
bool _ = pure mempty
108106
asBool _ = pure True <|> pure False
109-
string s = pure (Value (String s) mempty)
110-
asString (Value (String s) _) = pure s
107+
string _ = pure mempty
111108
asString _ = pure mempty
112109
record fields = pure (Value Abstract (foldMap (valueGraph . snd) fields))
113110
_ ... m = pure (Just m)

0 commit comments

Comments
 (0)