Changeset 6682 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
09/04/05 09:32:39 (3 years ago)
Author:
luqui
Message:

Created a warning that warns when you try to export an operator. The problem
came up with Set that exported &infix:<->, thus *overriding* the default
numeric minus, and causing wacky infinite loops all over the place!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r6594 r6682  
    1818    TParam(..), 
    1919    EnterClass(..), 
    20     die, varText, 
     20    die, varText 
    2121) where 
    2222import Pugs.AST 
     
    390390    compile val = return $ PVal val 
    391391 
    392 die :: (MonadIO m, Show a) => String -> a -> m b 
    393 die x y = do 
    394     warn x y 
    395     liftIO $ exitFailure 
    396  
    397 warn :: (MonadIO m, Show a) => String -> a -> m () 
    398 warn str val = liftIO $ do 
    399     hPutStrLn stderr $ "*** " ++ str ++ ":\n    " ++ show val 
    400  
    401392-- utility functions 
    402393padSort :: (Var, [(TVar Bool, TVar VRef)]) -> (String, [(a, b)]) -> Ordering