Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data NE s
- notEmpty :: (MonadThrow m, Eq s, Monoid s) => s -> m (NE s)
- original :: NE s -> s
- data NotEmptyException = EmptyValue
Documentation
data NE s
For a monoid s
, NE s
is s
without its neutral element mempty
.
Eq s => Eq (NE s) | |
Show s => Show (NE s) | |
Monoid s => Semigroup (NE s) |
|
(Eq s, Monoid s, Arbitrary s) => Arbitrary (NE s) | |
Arbitrary (OpmlGen [[NE Text]]) | Generates |
notEmpty :: (MonadThrow m, Eq s, Monoid s) => s -> m (NE s)
Smart constructor.