Skip to content

Commit

Permalink
Merge pull request #73 from domenkozar/more-type-alternations
Browse files Browse the repository at this point in the history
Apply more elmTypeAlterations
  • Loading branch information
domenkozar authored Jan 1, 2024
2 parents 440a5e0 + d52a733 commit 1248730
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 1248730

Please sign in to comment.