Changeset 5928 for src/Pugs/Junc.hs

Show
Ignore:
Timestamp:
07/31/05 08:24:37 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
8084
Message:

* remove dead code juncTypeIs from Junc.hs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Junc.hs

    r5890 r5928  
    6666    sameType (VJunc (MkJunc t' _ _))  = t == t' 
    6767    sameType _                      = False 
    68  
    69 {-| 
    70 Check if the specified value is a 'Pugs.Internals.VJunc' of one of the specified 
    71 junctive types. If it is, return it as a 'Pugs.Internals.VJunc'. 
    72 -} 
    73 juncTypeIs :: Val -- ^ Value to test 
    74            -> [JuncType] -- ^ Types to check against 
    75            -> Maybe VJunc -- ^ Returns 'Nothing' if the test fails 
    76 juncTypeIs v ts 
    77     | (VJunc j) <- v 
    78     , juncType j `elem` ts 
    79     = Just j 
    80     | otherwise 
    81     = Nothing 
    8268 
    8369{-|