exon-1.6.1.1: Customizable quasiquote interpolation
Safe HaskellSafe-Inferred
LanguageGHC2021

Exon.Combinators

Description

 
Synopsis

Documentation

intercalate1 :: Exon a => a -> NonEmpty a -> a Source #

Combine the elements in the list using Exon, interspersing the separator between each pair of elements.

intercalateMay :: Exon a => Foldable t => a -> t a -> Maybe a Source #

Combine the elements in the list using Exon, interspersing the separator between each pair of elements.

Returns Nothing when the list is empty.

intercalate :: Exon a => Monoid a => Foldable t => a -> t a -> a Source #

Combine the elements in the list using Exon, interspersing the separator between each pair of elements.

Returns mempty for empty lists; use intercalate1 for NonEmpty or intercalateMay to avoid the Monoid requirement.