diff --git a/example/debug-proxy.hs b/example/debug-proxy.hs deleted file mode 100644 index aff566c..0000000 --- a/example/debug-proxy.hs +++ /dev/null @@ -1,9 +0,0 @@ - -import Network.HTTP.Proxy - -main :: IO () -main = do - putStrLn "Proxy running on port 31081. Ctrl-C to quit." - runProxy 31081 - - diff --git a/example/simple-proxy.hs b/example/simple-proxy.hs index dbef21a..15cbaf1 100644 --- a/example/simple-proxy.hs +++ b/example/simple-proxy.hs @@ -1,5 +1,5 @@ -import Network.HTTP.Proxy +import Network.HTTP.Proxy (runProxy) -- The simplest possible HTTP/HTTPS proxy. main :: IO () diff --git a/http-proxy.cabal b/http-proxy.cabal index 82d48fd..949aa93 100644 --- a/http-proxy.cabal +++ b/http-proxy.cabal @@ -145,3 +145,12 @@ test-suite test-io , wai-conduit , warp , warp-tls + +executable simple-proxy + default-language: Haskell2010 + ghc-options: -Wall -fwarn-tabs -threaded -rtsopts "-with-rtsopts=-H1m -K1m" + hs-source-dirs: example + main-is: simple-proxy.hs + + build-depends: base + , http-proxy