ema-0.10.0.0: Static site generator library with hot reload
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ema.Route.Prism

Synopsis

Documentation

Handy encoders

eitherRoutePrism :: (a -> Prism_ FilePath r1) -> (b -> Prism_ FilePath r2) -> (a, b) -> Prism_ FilePath (Either r1 r2) Source #

Returns a new route Prism_ that supports *either* of the input routes.

The resulting route Prism_'s model type becomes the *product* of the input models.

Handy lenses