@@ -583,7 +583,7 @@ response body.
583583-}
584584isEmptyType :: ElmOptions -> EType -> Bool
585585isEmptyType opts elmTypeExpr =
586− elmTypeExpr `elem` emptyResponseElmTypes opts
586+ (elmTypeAlterations opts elmTypeExpr) `elem` emptyResponseElmTypes opts
587587
588588
589589{- | Determines whether we call `toString` on URL captures and query params of
@@ -591,7 +591,7 @@ this type in Elm.
591591-}
592592isElmStringType :: ElmOptions -> EType -> Bool
593593isElmStringType opts elmTypeExpr =
594− elmTypeExpr `elem` stringElmTypes opts
594+ (elmTypeAlterations opts elmTypeExpr) `elem` stringElmTypes opts
595595
596596{- | Determines whether a type is 'Maybe a' where 'a' is something akin to a 'String'.
597597-}