Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
ValInt Integer | |
ValBool Bool | |
ValList (Vector Value) | |
ValTuple [Value] | |
ValBuiltin Builtin [Value] | |
ValLambda (Maybe VarName) Env VarName Type Expr |
Instances
literalToValue :: MonadError Error m => Literal -> m Value Source #
valueToInt :: MonadError Error m => Value -> m Integer Source #
valueToList :: MonadError Error m => Value -> m (Vector Value) Source #
valueToIntList :: MonadError Error m => Value -> m [Integer] Source #
valueToBool :: MonadError Error m => Value -> m Bool Source #
valueToBoolList :: MonadError Error m => Value -> m [Bool] Source #
valueToTuple :: MonadError Error m => Value -> m [Value] Source #
valueToIntPair :: MonadError Error m => Value -> m (Integer, Integer) Source #
valueToVector :: MonadError Error m => Value -> m (Vector Integer) Source #
valueToMatrix :: MonadError Error m => Value -> m (Matrix Integer) Source #
valueToModVector :: MonadError Error m => Integer -> Value -> m (Vector ModInt) Source #
valueToModMatrix :: MonadError Error m => Integer -> Value -> m (Matrix ModInt) Source #
formatValue :: Value -> String Source #