reroute 0.2.2.1 → 0.2.3.0
raw patch · 3 files changed
+11/−5 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Web.Routing.SafeRouting: pathToRep :: Path as -> Rep as
Files
- LICENSE +2/−1
- reroute.cabal +4/−4
- src/Web/Routing/SafeRouting.hs +5/−0
LICENSE view
@@ -1,4 +1,5 @@-Copyright (c) 2014 Alexander Thiemann <mail@agrafix.net>+Copyright (c) 2014 - 2015 Alexander Thiemann <mail@athiemann.net>+Copyright (c) 2014 - 2015 Tim Baumann <tim@timbaumann.info> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the
reroute.cabal view
@@ -1,13 +1,13 @@ name: reroute-version: 0.2.2.1+version: 0.2.3.0 synopsis: abstract implementation of typed and untyped web routing description: abstraction over how urls with/without parameters are mapped to their corresponding handlers homepage: http://github.com/agrafix/reroute license: MIT license-file: LICENSE-author: Alexander Thiemann <mail@agrafix.net>, Tim Baumann <tim@timbaumann.info>-maintainer: mail@agrafix.net-copyright: (c) 2014 Alexander Thiemann <mail@agrafix.net>, Tim Baumann <tim@timbaumann.info>+author: Alexander Thiemann <mail@athiemann.net>, Tim Baumann <tim@timbaumann.info>+maintainer: Alexander Thiemann <mail@athiemann.net>+copyright: (c) 2014 - 2015 Alexander Thiemann <mail@athiemann.net>, Tim Baumann <tim@timbaumann.info> category: Web build-type: Simple cabal-version: >=1.10
src/Web/Routing/SafeRouting.hs view
@@ -60,6 +60,11 @@ StaticCons :: T.Text -> Path as -> Path as -- append a static path piece to path VarCons :: (PathPiece a, Typeable a) => Path as -> Path (a ': as) -- append a param to path +pathToRep :: Path as -> Rep as+pathToRep Empty = RNil+pathToRep (StaticCons _ p) = pathToRep p+pathToRep (VarCons p) = RCons (pathToRep p)+ data PathMap x = PathMap { pm_here :: [x]