Changeset 4335 for src/Pugs/Prim/Code.hs

Show
Ignore:
Timestamp:
06/03/05 03:11:32 (4 years ago)
Author:
theorbtwo
svk:copy_cache_prev:
5929
Message:

Prettify .pos output. (Should be converted to an obj with stringify
overloaded at some point.)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/Code.hs

    r4333 r4335  
    33import Pugs.AST 
    44import Pugs.Internals 
     5import Pugs.Pretty 
    56 
    67{- On Code -} 
     
    3233    case env of 
    3334        Nothing  -> return VUndef 
    34         Just env -> return $ castV $ show $ envPos env 
     35        Just env -> return $ castV $ pretty $ envPos env 
    3536 
    3637{- On Code::Exp -}