git.iko.soy/typeable/servant
on master help sign in
Review fixes
b22e4e7Julian K. Arni
doc/tutorial/Javascript.lhs+11−11
@@ -224,17 +224,17 @@ available options:
224data CommonGeneratorOptions = CommonGeneratorOptions
224data CommonGeneratorOptions = CommonGeneratorOptions
225 {
225 {
226 -- | function generating function names
226 -- | function generating function names
227− functionNameBuilder :: FunctionName -> String
227+ functionNameBuilder :: FunctionName -> Text
228 -- | name used when a user want to send the request body (to let you redefine it)
228 -- | name used when a user want to send the request body (to let you redefine it)
229− , requestBody :: String
229+ , requestBody :: Text
230 -- | name of the callback parameter when the request was successful
230 -- | name of the callback parameter when the request was successful
231− , successCallback :: String
231+ , successCallback :: Text
232 -- | name of the callback parameter when the request reported an error
232 -- | name of the callback parameter when the request reported an error
233− , errorCallback :: String
233+ , errorCallback :: Text
234 -- | namespace on which we define the js function (empty mean local var)
234 -- | namespace on which we define the js function (empty mean local var)
235− , moduleName :: String
235+ , moduleName :: Text
236 -- | a prefix that should be prepended to the URL in the generated JS
236 -- | a prefix that should be prepended to the URL in the generated JS
237− , urlPrefix :: String
237+ , urlPrefix :: Text
238 }
238 }
239```
239```
240
240
@@ -363,9 +363,9 @@ data AxiosOptions = AxiosOptions
363 -- should be made using credentials
363 -- should be made using credentials
364 withCredentials :: !Bool
364 withCredentials :: !Bool
365 -- | the name of the cookie to use as a value for xsrf token
365 -- | the name of the cookie to use as a value for xsrf token
366− , xsrfCookieName :: !(Maybe String)
366+ , xsrfCookieName :: !(Maybe Text)
367 -- | the name of the header to use as a value for xsrf token
367 -- | the name of the header to use as a value for xsrf token
368− , xsrfHeaderName :: !(Maybe String)
368+ , xsrfHeaderName :: !(Maybe Text)
369 }
369 }
370```
370```
371
371
@@ -466,11 +466,11 @@ Again, it is possible to customize some portions with the options.
466``` haskell
466``` haskell
467data AngularOptions = AngularOptions
467data AngularOptions = AngularOptions
468 { -- | When generating code with wrapInService, name of the service to generate, default is 'app'
468 { -- | When generating code with wrapInService, name of the service to generate, default is 'app'
469− serviceName :: String
469+ serviceName :: Text
470 , -- | beginning of the service definition
470 , -- | beginning of the service definition
471− prologue :: String -> String -> String
471+ prologue :: Text -> Text -> Text
472 , -- | end of the service definition
472 , -- | end of the service definition
473− epilogue :: String
473+ epilogue :: Text
474 }
474 }
475```
475```
476
476