Safe Haskell | Safe-Infered |
---|
- boolBinop :: (Bool -> Bool -> Bool) -> [EgisonVal] -> ThrowsError EgisonVal
- numericSglop :: (Integer -> Integer) -> [EgisonVal] -> ThrowsError EgisonVal
- floatSglop :: (Double -> Double) -> [EgisonVal] -> ThrowsError EgisonVal
- floatNumSglop :: (Double -> Integer) -> [EgisonVal] -> ThrowsError EgisonVal
- numericBinop :: (Integer -> Integer -> Integer) -> [EgisonVal] -> ThrowsError EgisonVal
- floatBinop :: (Double -> Double -> Double) -> [EgisonVal] -> ThrowsError EgisonVal
- stringBinop :: (String -> String -> String) -> [EgisonVal] -> ThrowsError EgisonVal
- charBoolBinop :: (Char -> Char -> Bool) -> [EgisonVal] -> ThrowsError EgisonVal
- strBoolBinop :: (String -> String -> Bool) -> [EgisonVal] -> ThrowsError EgisonVal
- numBoolBinop :: (Integer -> Integer -> Bool) -> [EgisonVal] -> ThrowsError EgisonVal
- floatBoolBinop :: (Double -> Double -> Bool) -> [EgisonVal] -> ThrowsError EgisonVal
- foldlM :: Monad m => (a -> b -> m a) -> a -> [b] -> m a
- foldl1M :: Monad m => (a -> a -> m a) -> [a] -> m a
- floatRound, floatTruncate, floatCeiling, floatFloor :: [EgisonVal] -> ThrowsError EgisonVal
- numSqrt, numExpt :: [EgisonVal] -> ThrowsError EgisonVal
- numExp :: [EgisonVal] -> ThrowsError EgisonVal
- numLog :: [EgisonVal] -> ThrowsError EgisonVal
- isEgisonEOF :: [EgisonVal] -> ThrowsError EgisonVal
- unpackBool :: EgisonVal -> ThrowsError Bool
- unpackChar :: EgisonVal -> ThrowsError Char
- unpackString :: EgisonVal -> ThrowsError String
- unpackNum :: EgisonVal -> ThrowsError Integer
- unpackFloat :: EgisonVal -> ThrowsError Double
- tupleToCollection :: [EgisonVal] -> ThrowsError EgisonVal
- collectionToTuple :: [EgisonVal] -> ThrowsError EgisonVal
- stringToChars :: [EgisonVal] -> ThrowsError EgisonVal
- charsToString :: [EgisonVal] -> ThrowsError EgisonVal
- arrayDimension :: [EgisonVal] -> ThrowsError EgisonVal
- arrayRange :: [EgisonVal] -> ThrowsError EgisonVal
- arraySize :: [EgisonVal] -> ThrowsError EgisonVal
- arrayKeys :: [EgisonVal] -> ThrowsError EgisonVal
- arrayIsRange :: [EgisonVal] -> ThrowsError EgisonVal
- arrayRef :: [EgisonVal] -> ThrowsError EgisonVal
Documentation
numericSglop :: (Integer -> Integer) -> [EgisonVal] -> ThrowsError EgisonValSource
floatSglop :: (Double -> Double) -> [EgisonVal] -> ThrowsError EgisonValSource
floatNumSglop :: (Double -> Integer) -> [EgisonVal] -> ThrowsError EgisonValSource
numericBinop :: (Integer -> Integer -> Integer) -> [EgisonVal] -> ThrowsError EgisonValSource
floatBinop :: (Double -> Double -> Double) -> [EgisonVal] -> ThrowsError EgisonValSource
stringBinop :: (String -> String -> String) -> [EgisonVal] -> ThrowsError EgisonValSource
charBoolBinop :: (Char -> Char -> Bool) -> [EgisonVal] -> ThrowsError EgisonValSource
strBoolBinop :: (String -> String -> Bool) -> [EgisonVal] -> ThrowsError EgisonValSource
numBoolBinop :: (Integer -> Integer -> Bool) -> [EgisonVal] -> ThrowsError EgisonValSource
floatBoolBinop :: (Double -> Double -> Bool) -> [EgisonVal] -> ThrowsError EgisonValSource
numExp :: [EgisonVal] -> ThrowsError EgisonValSource
numLog :: [EgisonVal] -> ThrowsError EgisonValSource
isEgisonEOF :: [EgisonVal] -> ThrowsError EgisonValSource
Convert a float to a string; radix is optional, defaults to base 10 floatToString :: [EgisonVal] -> IOThrowsError EgisonVal floatToString [(Float n)] = liftIO $ stringToCharCollection $ show n floatToString [x] = throwError $ TypeMismatch number x floatToString badArgList = throwError $ NumArgs 1 badArgList
unpackBool :: EgisonVal -> ThrowsError BoolSource
Extract an bool from the given value, throwing a type error if the wrong type is passed.
unpackChar :: EgisonVal -> ThrowsError CharSource
Extract an char from the given value, throwing a type error if the wrong type is passed.
unpackString :: EgisonVal -> ThrowsError StringSource
Extract an char from the given value, throwing a type error if the wrong type is passed.
unpackNum :: EgisonVal -> ThrowsError IntegerSource
Extract an integer from the given value, throwing a type error if the wrong type is passed.
unpackFloat :: EgisonVal -> ThrowsError DoubleSource
Extract an double from the given value, throwing a type error if the wrong type is passed.
arraySize :: [EgisonVal] -> ThrowsError EgisonValSource
arrayKeys :: [EgisonVal] -> ThrowsError EgisonValSource
arrayRef :: [EgisonVal] -> ThrowsError EgisonValSource