Module

Node.Optlicative.Internal

Package
purescript-optlicative
Repository
Thimoteus/purescript-optlicative

#throwSingleError Source

throwSingleError :: forall a. OptError -> Value a

#except Source

except :: forall a. OptError -> OptState -> Result a

#ex Source

ex :: forall a. String -> String -> (String -> OptError) -> Maybe String -> OptState -> Result a

#findAllIndices Source

findAllIndices :: forall a. (a -> Boolean) -> List a -> List Int

#removeAtFor Source

removeAtFor :: Int -> Int -> OptState -> { removed :: OptState, rest :: OptState }

#removeAtForWhile Source

removeAtForWhile :: Int -> Int -> (String -> Boolean) -> OptState -> { removed :: OptState, rest :: OptState }

#spliceWhile Source

spliceWhile :: forall a. (a -> Boolean) -> Int -> Int -> List a -> { focus :: List a, post :: List a, pre :: List a }

#takeDropWhile Source

takeDropWhile :: forall a. (a -> Boolean) -> Int -> List a -> { dropped :: List a, taken :: List a }

#takeDropWhile' Source

takeDropWhile' :: forall a. (a -> Boolean) -> Int -> List a -> { dropped :: List a, taken :: List a }

#takeDrop Source

takeDrop :: forall a. List a -> (a -> Boolean) -> Int -> List a -> { dropped :: List a, taken :: List a }

#isMultiHyphen Source

#isSingleHyphen Source

#find Source

find :: forall a. (a -> String) -> a -> OptState -> Maybe Int

#unrecognizedOpts Source

unrecognizedOpts :: forall a. OptState -> Value a

#partitionArgsList Source

partitionArgsList :: List String -> { cmds :: List String, opts :: List String }

#parse Source

parse :: forall a optrow. Commando optrow a => Record optrow -> Preferences a -> Array String -> { cmd :: Maybe String, value :: Value a }