diff --git a/examples/static/Main.hs b/examples/static/Main.hs new file mode 100644 index 0000000..18db535 --- /dev/null +++ b/examples/static/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import qualified Okapi + +main :: IO () +main = Okapi.run id Okapi.static diff --git a/okapi.cabal b/okapi.cabal index 0ceae68..909735e 100644 --- a/okapi.cabal +++ b/okapi.cabal @@ -137,6 +137,43 @@ executable sse-exe , websockets default-language: Haskell2010 +executable static-exe + main-is: Main.hs + other-modules: + Paths_okapi + hs-source-dirs: + examples/static + ghc-options: -threaded -rtsopts -with-rtsopts=-N + build-depends: + aeson >=1.4.7 + , attoparsec + , base >=4.7 && <5 + , base64 + , bytestring + , containers + , cookie + , cryptonite + , extra + , http-api-data + , http-types + , memory + , mmorph + , mtl + , network + , okapi + , parser-combinators + , text + , transformers + , unagi-chan + , vault + , wai + , wai-extra + , wai-websockets + , warp + , warp-tls + , websockets + default-language: Haskell2010 + executable todo-exe main-is: Main.hs other-modules: diff --git a/package.yaml b/package.yaml index 4d58b73..f5c5637 100644 --- a/package.yaml +++ b/package.yaml @@ -134,6 +134,15 @@ executables: - slave-thread - time - bytestring + static-exe: + main: Main.hs + source-dirs: examples/static + ghc-options: + - -threaded + - -rtsopts + - -with-rtsopts=-N + dependencies: + - okapi tests: okapi-test: