arrayfire-0.9.0.0: Haskell bindings to the ArrayFire general-purpose GPU library
CopyrightDavid Johnson (c) 2019-2026
LicenseBSD 3
MaintainerDavid Johnson <code@dmj.io>
StabilityExperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

ArrayFire.Exception

Description

module Main where

import ArrayFire

main :: IO ()
main = print =<< getAvailableBackends
[nix-shell:~/arrayfire]$ ./main
[CPU,OpenCL]
Synopsis

Documentation

errorToString :: AFErr -> IO String Source #

String representation of ArrayFire exception

data AFException Source #

Exception type for ArrayFire API

Constructors

AFException 

Fields

toAFExceptionType :: AFErr -> AFExceptionType Source #

Conversion function helper

throwAFError :: AFErr -> IO () Source #

Throws an ArrayFire Exception