git.iko.soy/typeable/servant
on master help sign in
Review fixes
commitb22e4e72f968bcbad8dff9cee1b58cbc4275e884 authorJulian K. Arni <jkarni@gmail.com> dateMon 15 Aug 2016, 15:39 (10 years ago) parent7aa550a
1 file changed+11−11
doc/tutorial/Javascript.lhs+11−11
doc/tutorial/Javascript.lhs+11−11
@@ -224,17 +224,17 @@ available options:
224224data CommonGeneratorOptions = CommonGeneratorOptions
225225 {
226226 -- | function generating function names
227− functionNameBuilder :: FunctionName -> String
227+ functionNameBuilder :: FunctionName -> Text
228228 -- | name used when a user want to send the request body (to let you redefine it)
229− , requestBody :: String
229+ , requestBody :: Text
230230 -- | name of the callback parameter when the request was successful
231− , successCallback :: String
231+ , successCallback :: Text
232232 -- | name of the callback parameter when the request reported an error
233− , errorCallback :: String
233+ , errorCallback :: Text
234234 -- | namespace on which we define the js function (empty mean local var)
235− , moduleName :: String
235+ , moduleName :: Text
236236 -- | a prefix that should be prepended to the URL in the generated JS
237− , urlPrefix :: String
237+ , urlPrefix :: Text
238238 }
239239```
240240
@@ -363,9 +363,9 @@ data AxiosOptions = AxiosOptions
363363 -- should be made using credentials
364364 withCredentials :: !Bool
365365 -- | the name of the cookie to use as a value for xsrf token
366− , xsrfCookieName :: !(Maybe String)
366+ , xsrfCookieName :: !(Maybe Text)
367367 -- | the name of the header to use as a value for xsrf token
368− , xsrfHeaderName :: !(Maybe String)
368+ , xsrfHeaderName :: !(Maybe Text)
369369 }
370370```
371371
@@ -466,11 +466,11 @@ Again, it is possible to customize some portions with the options.
466466``` haskell
467467data AngularOptions = AngularOptions
468468 { -- | When generating code with wrapInService, name of the service to generate, default is 'app'
469− serviceName :: String
469+ serviceName :: Text
470470 , -- | beginning of the service definition
471− prologue :: String -> String -> String
471+ prologue :: Text -> Text -> Text
472472 , -- | end of the service definition
473− epilogue :: String
473+ epilogue :: Text
474474 }
475475```
476476