Fixed underlyingType not recursing properly into the inner types in arrays
This commit is contained in:
parent
eef0ac53e0
commit
1afea6c62c
|
@ -323,7 +323,8 @@ underlyingType m = underlyingType'
|
||||||
underlyingType'' :: A.Type -> m A.Type
|
underlyingType'' :: A.Type -> m A.Type
|
||||||
underlyingType'' t@(A.UserDataType _)
|
underlyingType'' t@(A.UserDataType _)
|
||||||
= resolveUserType m t >>= underlyingType m
|
= resolveUserType m t >>= underlyingType m
|
||||||
underlyingType'' (A.Array ds t) = return $ addDimensions ds t
|
underlyingType'' (A.Array ds t)
|
||||||
|
= underlyingType m t >>* addDimensions ds
|
||||||
underlyingType'' t = doGeneric t
|
underlyingType'' t = doGeneric t
|
||||||
|
|
||||||
-- | Like underlyingType, but only do the "outer layer": if you give this a
|
-- | Like underlyingType, but only do the "outer layer": if you give this a
|
||||||
|
|
Loading…
Reference in New Issue
Block a user