Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- valueToExpVal' :: SrcSpan -> Value a -> Either String ExpVal
- valueToExpVal :: SrcSpan -> Value a -> ExpVal
- transformEither :: (a -> Either String b) -> Either String a -> Either String b
- transformEitherList :: ([a] -> Either String b) -> [Either String a] -> Either String b
- binaryTransformEither :: (a -> a -> Either String b) -> Either String a -> Either String a -> Either String b
- unaryOp' :: UnaryOp -> ExpVal -> Either String ExpVal
- unaryOp :: UnaryOp -> ExpVal -> ExpVal
- binaryOp' :: BinaryOp -> ExpVal -> ExpVal -> Either String ExpVal
- binaryOp :: BinaryOp -> ExpVal -> ExpVal -> ExpVal
- intrinsicFunctionCall :: String -> [ExpVal] -> Either String ExpVal
- nonLogicalToLogical :: ExpVal -> Either String Bool
Documentation
binaryTransformEither :: (a -> a -> Either String b) -> Either String a -> Either String a -> Either String b Source #
intrinsicFunctionCall :: String -> [ExpVal] -> Either String ExpVal Source #
Given a string representing a function call and a list of ExpVal
values holding inputs to the function, evaluate the function call
and return the result in a Right, or propagate the Left case if any
of the list elements are Lefts
.