Recurse into array types

This commit is contained in:
Adam Sampson 2007-05-03 03:38:25 +00:00
parent de36b66c8d
commit 043e8e1114

View File

@ -210,6 +210,7 @@ underlyingType (A.UserDataType n)
case st of
A.DataType _ t -> underlyingType t
_ -> die $ "not a type name " ++ show n
underlyingType (A.Array ds t) = liftM (A.Array ds) (underlyingType t)
underlyingType t = return t
-- | Add an array dimension to a type; if it's already an array it'll just add