opml-conduit-0.1.0.0: Streaming parser/renderer for the OPML 2.0 format.

Safe HaskellSafe
LanguageHaskell2010

Data.NotEmpty

Synopsis

Documentation

data NE s

For a monoid s, NE s is s without its neutral element mempty.

Instances

Eq s => Eq (NE s) 
Show s => Show (NE s) 
Monoid s => Semigroup (NE s)

NE s is the semigroup derived from the monoid type s.

(Eq s, Monoid s, Arbitrary s) => Arbitrary (NE s) 
Arbitrary (OpmlGen [[NE Text]])

Generates OutlineBase's categories. This generator makes sure that the result has no , nor / characters, since those are used as separators.

notEmpty :: (MonadThrow m, Eq s, Monoid s) => s -> m (NE s)

Smart constructor.

original :: NE s -> s

Unwrap the underlying value.