Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bookme
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christopher League
bookme
Commits
290efbf7
Commit
290efbf7
authored
Jul 18, 2019
by
Christopher League
🖥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redirect to static file for /version
parent
9509d7ac
Pipeline
#827
failed with stage
in 58 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
24 deletions
+16
-24
.dir-locals.el
.dir-locals.el
+7
-5
.gitattributes
.gitattributes
+1
-1
bookme.nix
bookme.nix
+4
-4
package.yaml
package.yaml
+0
-1
shell.nix
shell.nix
+1
-3
src/Handlers.hs
src/Handlers.hs
+3
-10
static/version.txt
static/version.txt
+0
-0
No files found.
.dir-locals.el
View file @
290efbf7
((
haskell-mode
.
((
haskell-indent-spaces
.
4
)
(
haskell-process-use-ghci
.
t
)
(
haskell-process-args-cabal-repl
.
(
"-ferror-spans -fno-diagnostics-show-caret -fshow-loaded-modules"
))
(
haskell-process-args-stack-ghci
.
(
"--ghc-options=-ferror-spans"
"--ghc-options=-fno-diagnostics-show-caret"
"--ghc-options=-fshow-loaded-modules"
))
))
((
haskell-mode
.
((
haskell-indent-spaces
.
4
)
(
haskell-process-type
.
cabal-new-repl
)
(
haskell-process-wrapper-function
.
(
lambda
(
argv
)
(
append
(
list
"nix-shell"
"--command"
)
(
list
(
mapconcat
'identity
argv
" "
)))))
))
(
shakespeare-hamlet-mode
.
((
electric-indent-mode
.
nil
)))
(
hamlet-mode
.
((
hamlet/basic-offset
.
4
)
(
haskell-process-use-ghci
.
t
))))
.gitattributes
View file @
290efbf7
version.txt export-subst
static/
version.txt export-subst
bookme.nix
View file @
290efbf7
{
mkDerivation
,
aeson
,
base
,
blaze-markup
,
bytestring
,
case-insensitive
,
classy-prelude
,
classy-prelude-yesod
,
containers
,
data-default
,
directory
,
exceptions
,
fast-logger
,
file-embed
,
foreign-store
,
g
itrev
,
g
ogol
,
gogol-apps-calendar
,
file-embed
,
foreign-store
,
gogol
,
gogol-apps-calendar
,
hjsmin
,
hpack
,
hspec
,
http-client-tls
,
http-conduit
,
http-types
,
lens
,
monad-control
,
monad-logger
,
shakespeare
,
sorted-list
,
stdenv
,
template-haskell
,
text
,
time
,
transformers
,
tz
...
...
@@ -17,7 +17,7 @@ mkDerivation {
libraryHaskellDepends
=
[
aeson
base
blaze-markup
bytestring
case-insensitive
classy-prelude
classy-prelude-yesod
containers
data-default
directory
exceptions
fast-logger
file-embed
foreign-store
g
itrev
g
ogol
fast-logger
file-embed
foreign-store
gogol
gogol-apps-calendar
hjsmin
http-client-tls
http-conduit
http-types
lens
monad-control
monad-logger
shakespeare
sorted-list
template-haskell
text
time
transformers
tz
unordered-containers
...
...
@@ -28,7 +28,7 @@ mkDerivation {
executableHaskellDepends
=
[
aeson
base
blaze-markup
bytestring
case-insensitive
classy-prelude
classy-prelude-yesod
containers
data-default
directory
exceptions
fast-logger
file-embed
foreign-store
g
itrev
g
ogol
fast-logger
file-embed
foreign-store
gogol
gogol-apps-calendar
hjsmin
http-client-tls
http-conduit
http-types
lens
monad-control
monad-logger
shakespeare
sorted-list
template-haskell
text
time
transformers
tz
unordered-containers
...
...
@@ -38,7 +38,7 @@ mkDerivation {
testHaskellDepends
=
[
aeson
base
blaze-markup
bytestring
case-insensitive
classy-prelude
classy-prelude-yesod
containers
data-default
directory
exceptions
fast-logger
file-embed
foreign-store
g
itrev
g
ogol
fast-logger
file-embed
foreign-store
gogol
gogol-apps-calendar
hjsmin
hspec
http-client-tls
http-conduit
http-types
lens
monad-control
monad-logger
shakespeare
sorted-list
template-haskell
text
time
transformers
tz
unordered-containers
...
...
package.yaml
View file @
290efbf7
...
...
@@ -20,7 +20,6 @@ dependencies:
-
fast-logger >=2.2 && <2.5
-
file-embed >=0.0.10.1 && <0.1
-
foreign-store >=0.2 && <0.3
-
gitrev >=1.3.1 && <1.4
-
gogol >=0.3.0 && <0.4
-
gogol-apps-calendar >=0.3.0 && <0.4
-
hjsmin >=0.1 && <0.3
...
...
shell.nix
View file @
290efbf7
{
nixpkgs
?
import
<
nixpkgs
>
{}
}:
(
import
./default.nix
{
inherit
nixpkgs
;
})
.
env
(
import
./default.nix
)
.
env
src/Handlers.hs
View file @
290efbf7
...
...
@@ -146,13 +146,6 @@ getRobotsR :: Handler TypedContent
getRobotsR
=
return
$
TypedContent
typePlain
$
toContent
$
(
embedFile
"config/robots.txt"
)
getVersionR
::
Handler
Text
getVersionR
-- req <- reqWaiRequest <$> getRequest
-- let hs = foldMap (\(h,v) -> tshow h <> ": " <> tshow v <> "\n") $ Network.Wai.requestHeaders req
=
do
return
$
$
(
gitHash
)
<>
if
$
(
gitDirty
)
then
"+"
else
""
getVersionR
::
Handler
TypedContent
getVersionR
=
redirect
$
StaticR
version_txt
version.txt
→
static/
version.txt
View file @
290efbf7
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment