| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Language.Futhark.Interpreter.IO
Description
IO operations exposed through the interpreter.
Synopsis
Documentation
The IO operation to perform. The idea of splitting it out into a type like this is to enforce some kind of auditing.
determineIO :: Monad m => Text -> Maybe (m ValueType -> Value m -> m IOOp) Source #
Determine which IO operation this is.
If you want to add a new one, then remember to also add it as an intrinsic in the type checker, and probably also to the prelude.