Show
Ignore:
Timestamp:
05.11.2009 17:00:35 (4 months ago)
Author:
maeder
Message:

fail by returning Nothing for wrong types

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/HasCASL/TypeAna.hs

    r12730 r12784  
    2929import Control.Monad 
    3030 
    31 -- * infer kind 
     31 -- * infer kind 
    3232 
    3333-- | extract kinds of type identifier 
     
    6464        ("no kind found for '" ++ showDoc ty "'" ++ 
    6565         if Set.null ks then "" else expected sk ks) 
    66         $ getRange ty] $ Just Set.empty 
     66        $ getRange ty] $ if dk == Error then Nothing else Just Set.empty 
    6767 
    6868-- | add an analysed type argument (warn on redeclared types)