pandoc-lens 0.5 → 0.6
raw patch · 2 files changed
+10/−2 lines, 2 filesdep ~lens
Dependency ranges changed: lens
Files
- Text/Pandoc/Lens.hs +8/−0
- pandoc-lens.cabal +2/−2
Text/Pandoc/Lens.hs view
@@ -26,6 +26,7 @@ , _DefinitionList , _Header , _HorizontalRule+ , _Table , _Div , _Null -- * Inlines@@ -158,6 +159,13 @@ where f HorizontalRule = Just () f _ = Nothing++-- | A prism on a 'Table' 'Block'+_Table :: Prism' Block ([Inline], [Alignment], [Double], [TableCell], [[TableCell]])+_Table = prism' (\(a, b, c, d, e) -> Table a b c d e) f+ where+ f (Table a b c d e) = Just (a, b, c, d, e)+ f _ = Nothing -- | A prism on a 'Div' 'Block' _Div :: Prism' Block [Block]
pandoc-lens.cabal view
@@ -1,5 +1,5 @@ name: pandoc-lens-version: 0.5+version: 0.6 synopsis: Lenses for Pandoc documents description: Lenses for Pandoc documents homepage: http://github.com/bgamari/pandoc-lens@@ -22,5 +22,5 @@ build-depends: base >=4.7 && <4.10, containers >=0.5 && <0.6, pandoc-types >=1.16 && <1.17,- lens >=4.2 && <4.14+ lens >=4.2 && <4.15 default-language: Haskell2010