reserve (empty) → 0.0.0
raw patch · 5 files changed
+94/−0 lines, 5 filesdep +QuickCheckdep +basedep +base-compatsetup-changed
Dependencies added: QuickCheck, base, base-compat, bytestring, directory, hspec, http-conduit, http-kit, http-types, network, process, unix, warp
Files
- LICENSE +19/−0
- Setup.lhs +3/−0
- reserve.cabal +59/−0
- src/Main.hs +12/−0
- test/Spec.hs +1/−0
+ LICENSE view
@@ -0,0 +1,19 @@+Copyright (c) 2014 Simon Hengel <sol@typeful.net>++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in+all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN+THE SOFTWARE.
+ Setup.lhs view
@@ -0,0 +1,3 @@+#!/usr/bin/env runhaskell+> import Distribution.Simple+> main = defaultMain
+ reserve.cabal view
@@ -0,0 +1,59 @@+name: reserve+version: 0.0.0+license: MIT+license-file: LICENSE+copyright: (c) 2014 Simon Hengel+author: Simon Hengel <sol@typeful.net>+maintainer: Simon Hengel <sol@typeful.net>+synopsis: Reserve reloads web applications+description: Universal and robust reloading for Haskell web applications+category: Web+build-type: Simple+cabal-version: >= 1.8++source-repository head+ type: git+ location: https://github.com/sol/reserve++executable reserve+ ghc-options:+ -Wall+ hs-source-dirs:+ src+ main-is:+ Main.hs+ build-depends:+ base == 4.*+ , base-compat >= 0.5.0+ , directory+ , network+ , unix+ , process+ , http-types+ , http-kit >= 0.5+ , bytestring++test-suite spec+ type:+ exitcode-stdio-1.0+ ghc-options:+ -Wall -Werror+ hs-source-dirs:+ src, test+ main-is:+ Spec.hs+ build-depends:+ base == 4.*+ , base-compat+ , directory+ , network+ , unix+ , process+ , http-types+ , http-kit+ , bytestring++ , hspec >= 1.5+ , QuickCheck+ , http-conduit+ , warp >= 3
+ src/Main.hs view
@@ -0,0 +1,12 @@+module Main (main) where++import Network++import Options+import Reserve++main :: IO ()+main = withSocketsDo $ do+ withOptions $ \opts -> do+ putStrLn $ "http://localhost:" ++ show (optionsReservePort opts)+ run opts
+ test/Spec.hs view
@@ -0,0 +1,1 @@+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}