Safe Haskell | None |
---|---|
Language | Haskell2010 |
Symantic for NonNull
.
Synopsis
- class Sym_NonNull term where
- fromNullable :: MonoFoldable o => term o -> term (Maybe (NonNull o))
- toNullable :: MonoFoldable o => term (NonNull o) -> term o
- ncons :: SemiSequence s => term (Element s) -> term s -> term (NonNull s)
- nuncons :: IsSequence s => term (NonNull s) -> term (Element s, Maybe (NonNull s))
- head :: MonoFoldable o => term (NonNull o) -> term (Element o)
- last :: MonoFoldable o => term (NonNull o) -> term (Element o)
- tail :: IsSequence s => term (NonNull s) -> term s
- init :: IsSequence s => term (NonNull s) -> term s
- nfilter :: IsSequence s => term (Element s -> Bool) -> term (NonNull s) -> term s
- tyNonNull :: Source src => Type src vs a -> Type src vs (NonNull a)
- teNonNull_fromNullable :: TermDef NonNull '[Proxy o] (MonoFoldable o #> (o -> Maybe (NonNull o)))
- teNonNull_toNullable :: TermDef NonNull '[Proxy o] (MonoFoldable o #> (NonNull o -> o))
- teNonNull_ncons :: TermDef NonNull '[Proxy s, Proxy e] ((SemiSequence s # (e #~ Element s)) #> (e -> s -> NonNull s))
- teNonNull_nuncons :: TermDef NonNull '[Proxy s, Proxy e] ((IsSequence s # (e #~ Element s)) #> (NonNull s -> (e, Maybe (NonNull s))))
- teNonNull_nfilter :: TermDef NonNull '[Proxy s, Proxy e] ((IsSequence s # (e #~ Element s)) #> ((e -> Bool) -> NonNull s -> s))
- teNonNull_head :: TermDef NonNull '[Proxy o, Proxy e] ((MonoFoldable o # (e #~ Element o)) #> (NonNull o -> e))
- teNonNull_last :: TermDef NonNull '[Proxy o, Proxy e] ((MonoFoldable o # (e #~ Element o)) #> (NonNull o -> e))
- teNonNull_tail :: TermDef NonNull '[Proxy s] (IsSequence s #> (NonNull s -> s))
- teNonNull_init :: TermDef NonNull '[Proxy s] (IsSequence s #> (NonNull s -> s))
Class Sym_NonNull
class Sym_NonNull term where Source #
Nothing
fromNullable :: MonoFoldable o => term o -> term (Maybe (NonNull o)) Source #
toNullable :: MonoFoldable o => term (NonNull o) -> term o Source #
ncons :: SemiSequence s => term (Element s) -> term s -> term (NonNull s) Source #
nuncons :: IsSequence s => term (NonNull s) -> term (Element s, Maybe (NonNull s)) Source #
head :: MonoFoldable o => term (NonNull o) -> term (Element o) Source #
last :: MonoFoldable o => term (NonNull o) -> term (Element o) Source #
tail :: IsSequence s => term (NonNull s) -> term s Source #
init :: IsSequence s => term (NonNull s) -> term s Source #
nfilter :: IsSequence s => term (Element s -> Bool) -> term (NonNull s) -> term s Source #
fromNullable :: Sym_NonNull (UnT term) => Trans term => MonoFoldable o => term o -> term (Maybe (NonNull o)) Source #
toNullable :: Sym_NonNull (UnT term) => Trans term => MonoFoldable o => term (NonNull o) -> term o Source #
ncons :: Sym_NonNull (UnT term) => Trans term => SemiSequence s => term (Element s) -> term s -> term (NonNull s) Source #
nuncons :: Sym_NonNull (UnT term) => Trans term => IsSequence s => term (NonNull s) -> term (Element s, Maybe (NonNull s)) Source #
head :: Sym_NonNull (UnT term) => Trans term => MonoFoldable o => term (NonNull o) -> term (Element o) Source #
last :: Sym_NonNull (UnT term) => Trans term => MonoFoldable o => term (NonNull o) -> term (Element o) Source #
tail :: Sym_NonNull (UnT term) => Trans term => IsSequence s => term (NonNull s) -> term s Source #
init :: Sym_NonNull (UnT term) => Trans term => IsSequence s => term (NonNull s) -> term s Source #
nfilter :: Sym_NonNull (UnT term) => Trans term => IsSequence s => term (Element s -> Bool) -> term (NonNull s) -> term s Source #
Instances
Type
s
Term
s
teNonNull_fromNullable :: TermDef NonNull '[Proxy o] (MonoFoldable o #> (o -> Maybe (NonNull o))) Source #
teNonNull_toNullable :: TermDef NonNull '[Proxy o] (MonoFoldable o #> (NonNull o -> o)) Source #
teNonNull_ncons :: TermDef NonNull '[Proxy s, Proxy e] ((SemiSequence s # (e #~ Element s)) #> (e -> s -> NonNull s)) Source #
teNonNull_nuncons :: TermDef NonNull '[Proxy s, Proxy e] ((IsSequence s # (e #~ Element s)) #> (NonNull s -> (e, Maybe (NonNull s)))) Source #
teNonNull_nfilter :: TermDef NonNull '[Proxy s, Proxy e] ((IsSequence s # (e #~ Element s)) #> ((e -> Bool) -> NonNull s -> s)) Source #
teNonNull_head :: TermDef NonNull '[Proxy o, Proxy e] ((MonoFoldable o # (e #~ Element o)) #> (NonNull o -> e)) Source #
teNonNull_last :: TermDef NonNull '[Proxy o, Proxy e] ((MonoFoldable o # (e #~ Element o)) #> (NonNull o -> e)) Source #
teNonNull_tail :: TermDef NonNull '[Proxy s] (IsSequence s #> (NonNull s -> s)) Source #
teNonNull_init :: TermDef NonNull '[Proxy s] (IsSequence s #> (NonNull s -> s)) Source #