Commit 290efbf7 authored by Christopher League's avatar Christopher League

Redirect to static file for /version

parent 9509d7ac
Pipeline #827 failed with stage
in 58 seconds
((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))))
version.txt export-subst
static/version.txt export-subst
{ mkDerivation, aeson, base, blaze-markup, bytestring
, case-insensitive, classy-prelude, classy-prelude-yesod
, containers, data-default, directory, exceptions, fast-logger
, file-embed, foreign-store, gitrev, gogol, 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 gitrev gogol
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 gitrev gogol
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 gitrev gogol
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
......
......@@ -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
......
{ nixpkgs ? import <nixpkgs> {}
}:
(import ./default.nix { inherit nixpkgs; }).env
(import ./default.nix).env
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment