Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
add basic .Str
  • Loading branch information
coke committed Apr 16, 2012
1 parent f7180f8 commit 740cde8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pugs/src/Pugs/Prim.hs
Expand Up @@ -218,6 +218,7 @@ op1 "list" = op1Cast VList
op1 "pair" = op1Cast $ VList . (map $ \(k, v) -> castV ((VStr k, v) :: VPair))
op1 "~" = op1Cast VStr
op1 "gist" = op1Cast VStr -- Cheat
op1 "Str" = op1Cast VStr
op1 "?" = op1Cast VBool
op1 "so" = op1Cast VBool
op1 "Bool" = op1Cast VBool
Expand Down Expand Up @@ -1897,6 +1898,7 @@ initSyms = seq (length syms) $ do
\\n Num spre - safe (Num)\
\\n Str spre ~ safe (Str)\
\\n Str pre gist safe (Any)\
\\n Str pre Str safe (Any)\
\\n Bool spre ? safe (Bool)\
\\n Bool pre so safe (Any)\
\\n Str spre = unsafe (?IO)\
Expand Down

0 comments on commit 740cde8

Please sign in to comment.