Skip to content

Commit

Permalink
apply more elmTypeAlterations
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jan 1, 2024
1 parent 440a5e0 commit d52a733
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Servant/Elm/Internal/Generate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,15 @@ response body.
-}
isEmptyType :: ElmOptions -> EType -> Bool
isEmptyType opts elmTypeExpr =
elmTypeExpr `elem` emptyResponseElmTypes opts
(elmTypeAlterations opts elmTypeExpr) `elem` emptyResponseElmTypes opts


{- | Determines whether we call `toString` on URL captures and query params of
this type in Elm.
-}
isElmStringType :: ElmOptions -> EType -> Bool
isElmStringType opts elmTypeExpr =
elmTypeExpr `elem` stringElmTypes opts
(elmTypeAlterations opts elmTypeExpr) `elem` stringElmTypes opts

{- | Determines whether a type is 'Maybe a' where 'a' is something akin to a 'String'.
-}
Expand Down

0 comments on commit d52a733

Please sign in to comment.