File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Data/Aeson/TypeScript Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,12 @@ getTypeAsStringExp typ = [|getTypeScriptType (Proxy :: Proxy $(return typ))|]
8383getOptionalAsBoolExp :: Type -> Q Exp
8484getOptionalAsBoolExp typ = [| getTypeScriptOptional (Proxy :: Proxy $ (return typ ))| ]
8585
86- -- | Helper to apply a type constructor to a list of type args
86+ -- | Apply a type constructor to a list of type args
8787applyToArgsT :: Type -> [Type ] -> Type
8888applyToArgsT constructor [] = constructor
8989applyToArgsT constructor (x: xs) = applyToArgsT (AppT constructor x) xs
9090
91- -- | Helper to apply a function a list of args
91+ -- | Apply a function to a list of args
9292applyToArgsE :: Exp -> [Exp ] -> Exp
9393applyToArgsE f [] = f
9494applyToArgsE f (x: xs) = applyToArgsE (AppE f x) xs
You can’t perform that action at this time.
0 commit comments