path-extra 0.0.6 → 0.1.0
raw patch · 3 files changed
+69/−24 lines, 3 filesdep −exceptionsdep ~basePVP ok
version bump matches the API change (PVP)
Dependencies removed: exceptions
Dependency ranges changed: base
API changes (from Hackage documentation)
- Path.Extended: toLocation :: (ToLocation sym base type', MonadThrow m) => sym -> m (Location base type')
+ Path.Extended: toLocation :: ToLocation sym base type' => sym -> Location base type'
- Path.Extended: toPath :: (ToPath sym base type', MonadThrow m) => sym -> m (Path base type')
+ Path.Extended: toPath :: ToPath sym base type' => sym -> Path base type'
Files
- README.md +31/−0
- path-extra.cabal +36/−21
- src/Path/Extended.hs +2/−3
+ README.md view
@@ -0,0 +1,31 @@+# path-REST++TODO: Write description here++## Installation++TODO: Write installation instructions here++## Usage++### Creating `x`++TODO: Write usage instructions here++### Combining `x`++TODO: Write usage instructions here++### Consuming `x`++TODO: Write usage instructions here++## How to run tests++```+cabal configure --enable-tests && cabal build && cabal test+```++## Contributing++TODO: Write contribution instructions here
path-extra.cabal view
@@ -1,23 +1,38 @@-Name: path-extra-Version: 0.0.6-Author: Athan Clark <athan.clark@gmail.com>-Maintainer: Athan Clark <athan.clark@gmail.com>-License: BSD3-License-File: LICENSE-Synopsis: Chris Done's path library, enriched with URL-related goodies.--- Description:-Cabal-Version: >= 1.10-Build-Type: Simple+-- This file has been generated from package.yaml by hpack version 0.21.2.+--+-- see: https://github.com/sol/hpack+--+-- hash: 5de4ded9dc7201c2974f61c80d3dee4ee243bc075ecb0a943d1b782dccefec7c -Library- Default-Language: Haskell2010- HS-Source-Dirs: src- GHC-Options: -Wall- Exposed-Modules: Path.Extended- Build-Depends: base >= 4.6 && < 5- , exceptions- , path+name: path-extra+version: 0.1.0+synopsis: Some extensions to Chris Done's path library, for use with urlpath and attoparsec-uri.+description: Please see the README on Github at <https://github.com/githubuser/localcooking-db#readme>+category: System, Filesystem, Web+author: Athan Clark+maintainer: athan.clark@localcooking.com+copyright: Copyright (c) 2018 Local Cooking Inc.+license: BSD3+license-file: LICENSE+build-type: Simple+cabal-version: >= 1.10 -Source-Repository head- Type: git- Location: https://github.com/athanclark/path-extra.git+extra-source-files:+ README.md++source-repository head+ type: git+ location: git://git.localcooking.com/tooling/path-extra.git++library+ exposed-modules:+ Path.Extended+ other-modules:+ Paths_path_extra+ hs-source-dirs:+ src+ ghc-options: -Wall+ build-depends:+ base >=4.8 && <5+ , path+ default-language: Haskell2010
src/Path/Extended.hs view
@@ -43,7 +43,6 @@ import qualified Path as P ((</>)) import Data.List (intercalate)-import Control.Monad.Catch class PathAppend right base type' where@@ -53,12 +52,12 @@ -- | Convenience typeclass for symbolic, stringless routes - make an instance -- for your own data type to use your constructors as route-referencing symbols. class ToPath sym base type' | sym -> base type' where- toPath :: MonadThrow m => sym -> m (Path base type')+ toPath :: sym -> Path base type' -- | Convenience typeclass for symbolic, stringless routes - make an instance -- for your own data type to use your constructors as route-referencing symbols. class ToLocation sym base type' | sym -> base type' where- toLocation :: MonadThrow m => sym -> m (Location base type')+ toLocation :: sym -> Location base type' -- | A location for some base and type - internally uses @Path@.