Added to an error message in Types to help determine the problem
This commit is contained in:
parent
7a7b60449c
commit
6f76f6385e
|
@ -48,6 +48,7 @@ import EvalLiterals
|
|||
import Intrinsics
|
||||
import Metadata
|
||||
import Pass
|
||||
import PrettyShow
|
||||
import ShowCode
|
||||
import TypeSizes
|
||||
import Utils
|
||||
|
@ -69,7 +70,8 @@ typeOfName n
|
|||
t <- typeOfSpec st
|
||||
case t of
|
||||
Just t' -> return t'
|
||||
Nothing -> dieP (findMeta n) $ "cannot type name " ++ show st
|
||||
Nothing -> dieP (findMeta n) $ "cannot type name " ++ pshow n ++
|
||||
":" ++ show st
|
||||
|
||||
typeOfSpec :: (CSMR m, Die m) => A.SpecType -> m (Maybe A.Type)
|
||||
typeOfSpec st
|
||||
|
|
Loading…
Reference in New Issue
Block a user