web-routes-generics 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+1/−10 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Web.Routes.Generics: Bar :: Int -> Int -> Path
- Web.Routes.Generics: Foo :: Path
- Web.Routes.Generics: data Path
- Web.Routes.Generics: instance GHC.Generics.Generic Web.Routes.Generics.Path
- Web.Routes.Generics: instance GHC.Show.Show Web.Routes.Generics.Path
- Web.Routes.Generics: instance Web.Routes.PathInfo.PathInfo Web.Routes.Generics.Path
Files
- Web/Routes/Generics.hs +0/−9
- web-routes-generics.cabal +1/−1
Web/Routes/Generics.hs view
@@ -7,11 +7,6 @@ import Text.ParserCombinators.Parsec.Combinator import Web.Routes.PathInfo (PathInfo(fromPathSegments, toPathSegments), URLParser, segment) -data Path- = Foo- | Bar Int Int- deriving (Show, Generic)- class GToURL f where gtoPathSegments :: f a -> [Text] gfromPathSegments :: URLParser (f a)@@ -50,7 +45,3 @@ instance (GToURL f) => GToURL (S1 c f) where gtoPathSegments (M1 f) = gtoPathSegments f gfromPathSegments = M1 <$> gfromPathSegments--instance PathInfo Path where- toPathSegments = gtoPathSegments . from- fromPathSegments = fmap to gfromPathSegments
web-routes-generics.cabal view
@@ -1,5 +1,5 @@ Name: web-routes-generics-Version: 0.1.0.0+Version: 0.1.0.1 License: BSD3 License-File: LICENSE Author: jeremy@seereason.com