some package:relude
One or more.
Examples
>>> some (putStr "la")
lalalalalalalalala... * goes on forever *
>>> some Nothing
nothing
>>> take 5 <$> some (Just 1)
* hangs forever *
Note that this function can be used with Parsers based on
Applicatives. In that case
some parser will attempt to parse
parser one or more times until it fails.
Convert an integer into an unknown type-level natural.
@since base-4.10.0.0
This type represents unknown type-level natural numbers.
@since base-4.10.0.0
The SomeException type is the root of the exception type
hierarchy. When an exception of type e is thrown, behind the
scenes it is encapsulated in a SomeException.