Commit 86fcf897 authored by Christopher League's avatar Christopher League 🖥
Browse files

Facilitate separate exe for google authorization

parent 85b3f6a0
((haskell-mode . ((haskell-indent-spaces . 4)
(haskell-process-use-ghci . t)))
(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"))
))
(hamlet-mode . ((hamlet/basic-offset . 4)
(haskell-process-use-ghci . t))))
import Prelude (IO)
import Settings.Auth (authorizeMain)
main :: IO ()
main = authorizeMain
......@@ -7,40 +7,44 @@ dependencies:
# See: https://ghc.haskell.org/trac/ghc/ticket/12130
- base >=4.8.2.0 && <4.9 || >=4.9.1.0 && <5
- yesod >=1.6 && <1.7
- yesod-core >=1.6 && <1.7
- yesod-static >=1.6 && <1.7
- yesod-form >=1.6 && <1.7
- classy-prelude >=1.4 && <1.5
- classy-prelude-conduit >=1.4 && <1.5
- classy-prelude-yesod >=1.4 && <1.5
- bytestring >=0.9 && <0.11
- text >=0.11 && <2.0
- template-haskell
- shakespeare >=2.0 && <2.1
- hjsmin >=0.1 && <0.3
- monad-control >=0.3 && <1.1
- wai-extra >=3.0 && <3.1
- yaml >=0.8 && <0.9
- http-client-tls >=0.3 && <0.4
- http-conduit >=2.3 && <2.4
- directory >=1.1 && <1.4
- warp >=3.0 && <3.3
- aeson >=0.6 && <1.3
- bytestring >=0.9 && <0.11
- case-insensitive
- classy-prelude >=1.4 && <1.5
- classy-prelude-conduit >=1.4 && <1.5
- classy-prelude-yesod >=1.4 && <1.5
- conduit >=1.0 && <2.0
- containers
- data-default
- aeson >=0.6 && <1.3
- conduit >=1.0 && <2.0
- monad-logger >=0.3 && <0.4
- fast-logger >=2.2 && <2.5
- wai-logger >=2.2 && <2.4
- directory >=1.1 && <1.4
- fast-logger >=2.2 && <2.5
- file-embed
- foreign-store
- gogol >=0.3.0 && <0.4
- gogol-apps-calendar >=0.3.0 && <0.4
- hjsmin >=0.1 && <0.3
- http-types
- http-client-tls >=0.3 && <0.4
- http-conduit >=2.3 && <2.4
- lens
- monad-control >=0.3 && <1.1
- monad-logger >=0.3 && <0.4
- safe
- shakespeare >=2.0 && <2.1
- template-haskell
- text >=0.11 && <2.0
- time
- unordered-containers
- containers
- vector
- time
- case-insensitive
- wai
- foreign-store
- wai-extra >=3.0 && <3.1
- wai-logger >=2.2 && <2.4
- warp >=3.0 && <3.3
- yaml >=0.8 && <0.9
- yesod >=1.6 && <1.7
- yesod-core >=1.6 && <1.7
- yesod-form >=1.6 && <1.7
- yesod-static >=1.6 && <1.7
# The library contains all of our application code. The executable
# defined below is just a thin wrapper.
......@@ -74,6 +78,14 @@ executables:
when:
- condition: flag(library-only)
buildable: false
bookme-authorize:
main: auth.hs
source-dirs: app
dependencies:
- bookme
when:
- condition: flag(library-only)
buildable: false
# Test suite
tests:
......
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-|
Module: Settings.Auth
Description: TODO
TODO
-}
module Settings.Auth
( authorizeMain
) where
import Import
authorizeMain :: IO ()
authorizeMain =
putStrLn "Hello world"
......@@ -39,7 +39,14 @@ packages:
- .
# Dependency packages to be pulled from upstream that are not in the resolver
# (e.g., acme-missiles-0.3)
# extra-deps: []
extra-deps:
- git: git@github.com:brendanhay/gogol.git
commit: 344c9f781560e1ed8395b17e370ba1b085f2edc2
subdirs:
- core
- gogol
- gogol-apps-calendar
# Override default flag values for local packages and extra-deps
# flags: {}
......@@ -63,4 +70,4 @@ packages:
# extra-lib-dirs: [/path/to/dir]
#
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
\ No newline at end of file
# compiler-check: newer-minor
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