bbcode 0.1.0.1 → 0.1.0.2
raw patch · 4 files changed
+19/−5 lines, 4 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Text.BBCode: docNL :: [BBCode] -> BBCode
Files
- CHANGELOG.md +12/−4
- bbcode.cabal +1/−1
- lib/Text/BBCode.hs +1/−0
- lib/Text/BBCode/Internal/Builder.hs +5/−0
CHANGELOG.md view
@@ -1,10 +1,18 @@ # Revision history for BBCode -## 0.1.0.0 -- 2023-09-10+## 0.1.0.1 -- 2023-09-12 -* First version. Released on an unsuspecting world.+### Added +`docNL` – like `doc` but inserts newline between each element+ ## 0.1.0.1 -- 2023-09-10 -* Fix `Text.BBCode.pretty` for `Text.BBCode.spoilerNamed` when argument is-unicode. It was outputting escape sequence instead of actual characters+### Fixed++`pretty` for `spoilerNamed` was outputting escape sequence instead of actual+characters when argument is Unicode++## 0.1.0.0 -- 2023-09-10++First version. Released on an unsuspecting world.
bbcode.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: bbcode-version: 0.1.0.1+version: 0.1.0.2 synopsis: Library for parsing, constructing, and printing BBCode description: This is a set of utilities for: Parsing BBCode into AST(providing
lib/Text/BBCode.hs view
@@ -14,6 +14,7 @@ nl , text , doc+ , docNL , hr , br , clear
lib/Text/BBCode/Internal/Builder.hs view
@@ -2,6 +2,7 @@ import Numeric.Natural import Text.BBCode.Internal.Helper+import Data.List (intersperse) {-| Newline @@ -20,6 +21,10 @@ doc :: [BBCode] -> BBCode doc = ElDocument {-# INLINE doc #-}++-- | Intersperse('intersperse') list with 'nl' and wrap it in 'ElDocument'+docNL :: [BBCode] -> BBCode+docNL = doc . intersperse nl {-| Horizontal line