Skip to content

Instantly share code, notes, and snippets.

@quietfanatic
Created July 26, 2012 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quietfanatic/3180344 to your computer and use it in GitHub Desktop.
Save quietfanatic/3180344 to your computer and use it in GitHub Desktop.
Pugs: Typename -> Typename()
diff --git a/Pugs/src/Pugs/AST/Internals.hs b/Pugs/src/Pugs/AST/Internals.hs
index cf984b1..afead2e 100644
--- a/Pugs/src/Pugs/AST/Internals.hs
+++ b/Pugs/src/Pugs/AST/Internals.hs
@@ -1166,7 +1166,7 @@ instance Value VStr where
fromVal (VList l) = return . unwords =<< mapM fromVal l
fromVal v@(PerlSV _) = fromVal' v
fromVal VUndef = return ""
- fromVal (VType t) = return (showType t)
+ fromVal (VType t) = return (showType t ++ "()")
fromVal v = do
vt <- evalValType v
case showType vt of
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment