Changeset 15443 for src/Pugs/Meta
- Timestamp:
- 03/04/07 14:47:38 (21 months ago)
- Files:
-
- 1 modified
-
src/Pugs/Meta/Perl5.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Meta/Perl5.hs
r15441 r15443 8 8 import Data.Typeable (Typeable) 9 9 import qualified Data.Map as Map 10 import {-# SOURCE #-} Pugs.AST.Internals (envContext, anyToVal )10 import {-# SOURCE #-} Pugs.AST.Internals (envContext, anyToVal, anyFromVal) 11 11 import Pugs.Types 12 12 … … 26 26 | Just x' <- fromTypeable x = liftIO . vintToSV $ (cast :: PureInt -> Integer) x' 27 27 | Just x' <- fromTypeable x = liftIO . vnumToSV $ (cast :: PureNum -> Double) x' 28 | Just x' <- fromTypeable x = anyFromVal x' 28 29 | otherwise = fail $ "Cannot coerce to SV: " ++ show (typeOf x) 29 30
