hspec-tidy-formatter-0.2.0.1: A custom hspec formatter for easy-to-read terminal output.
LicenseMIT
Safe HaskellNone
LanguageGHC2021

Test.Hspec.TidyFormatter.Internal

Description

 
Synopsis

Formatter

(to enable doctests:)

mapLast :: (a -> a) -> [a] -> [a] Source #

Map the last element.

>>> mapLast (+1) [1,2,3]
[1,2,4]

append :: Semigroup a => [a] -> a -> [a] infixl 3 Source #

Append the last item monoidally with the given value.

>>> [[1],[2,3]] `append` [4,5]
[[1],[2,3,4,5]]