Safe Haskell | Safe-Inferred |
---|
- singleOp :: (PrimitiveVal a, PrimitiveVal b) => (a -> b) -> [EgisonVal] -> ThrowsError EgisonVal
- multiOp :: PrimitiveVal a => (a -> a -> a) -> [EgisonVal] -> ThrowsError EgisonVal
- binaryOp :: (PrimitiveVal a, PrimitiveVal b, PrimitiveVal c) => (a -> b -> c) -> [EgisonVal] -> ThrowsError EgisonVal
- isEgisonEOF :: [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
singleOp :: (PrimitiveVal a, PrimitiveVal b) => (a -> b) -> [EgisonVal] -> ThrowsError EgisonValSource
multiOp :: PrimitiveVal a => (a -> a -> a) -> [EgisonVal] -> ThrowsError EgisonValSource
binaryOp :: (PrimitiveVal a, PrimitiveVal b, PrimitiveVal c) => (a -> b -> c) -> [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
arraySize :: [EgisonVal] -> ThrowsError EgisonValSource
arrayKeys :: [EgisonVal] -> ThrowsError EgisonValSource
arrayRef :: [EgisonVal] -> ThrowsError EgisonValSource