Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hikaru
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
hikaru
Commits
3d6c349e
Verified
Commit
3d6c349e
authored
5 years ago
by
jan.hamal.dvorak
Browse files
Options
Downloads
Patches
Plain Diff
Improve Action docs
Signed-off-by:
Jan Hamal Dvořák
<
mordae@anilinux.org
>
parent
ba544e38
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/Hikaru/Action.hs
+6
-6
6 additions, 6 deletions
lib/Hikaru/Action.hs
with
6 additions
and
6 deletions
lib/Hikaru/Action.hs
+
6
−
6
View file @
3d6c349e
...
@@ -80,8 +80,8 @@ module Hikaru.Action
...
@@ -80,8 +80,8 @@ module Hikaru.Action
,
throwError
,
throwError
-- ** Localization
-- ** Localization
,
setLanguages
,
getLanguages
,
getLanguages
,
setLanguages
-- ** Finalizing
-- ** Finalizing
,
registerFinalizer
,
registerFinalizer
...
@@ -427,7 +427,7 @@ where
...
@@ -427,7 +427,7 @@ where
-- |
-- |
--
Returns
HTTP @Referrer@ header or just @/@.
--
Obtain
HTTP @Referrer@ header or just @/@.
--
--
-- Useful for redirects back to where the user came from.
-- Useful for redirects back to where the user came from.
--
--
...
@@ -462,7 +462,7 @@ where
...
@@ -462,7 +462,7 @@ where
-- just read until the limit is exceeded.
-- just read until the limit is exceeded.
--
--
-- Precise enforcement is more expensive, so we may allow slightly
-- Precise enforcement is more expensive, so we may allow slightly
-- more (up to 32kb) than the limit set here whe
re
the request
-- more (up to 32kb) than the limit set here whe
n
the request
-- length is not known beforehand.
-- length is not known beforehand.
--
--
setBodyLimit
::
(
MonadAction
m
)
=>
Int64
->
m
()
setBodyLimit
::
(
MonadAction
m
)
=>
Int64
->
m
()
...
@@ -994,7 +994,7 @@ where
...
@@ -994,7 +994,7 @@ where
-- |
-- |
-- Same a
s 'throwError', but with a message
.
-- Same a
n IO exception in the form of ('RequestError', 'Text')
.
--
--
throwError
::
(
MonadAction
m
)
=>
RequestError
->
Text
->
m
a
throwError
::
(
MonadAction
m
)
=>
RequestError
->
Text
->
m
a
throwError
exn
msg
=
liftIO
$
throwIO
(
exn
,
msg
)
throwError
exn
msg
=
liftIO
$
throwIO
(
exn
,
msg
)
...
@@ -1005,10 +1005,10 @@ where
...
@@ -1005,10 +1005,10 @@ where
-- |
-- |
-- Get list of languages in order of their preference to be used
-- Get list of languages in order of their preference to be used
--
when
localiz
ing the result of the ac
tion.
--
for
localiz
a
tion.
--
--
-- Languages must be set using the 'setLanguages' function or through
-- Languages must be set using the 'setLanguages' function or through
-- the localization tools found in the "Hikaru.Locale" module.
-- the localization tools found in the "Hikaru.Local
iz
e" module.
--
--
getLanguages
::
(
MonadAction
m
)
=>
m
[
Text
]
getLanguages
::
(
MonadAction
m
)
=>
m
[
Text
]
getLanguages
=
getActionField
aeLanguages
getLanguages
=
getActionField
aeLanguages
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment