hnetcdf-0.5.0.0: Haskell NetCDF library

Safe HaskellNone
LanguageHaskell98

Data.NetCDF.Utils

Synopsis

Documentation

type NcIO a = IO (Either NcError a) Source #

Simple synonym to tidy up signatures.

type Access a = ReaderT (String, FilePath) (ExceptT NcError IO) a Source #

Monad stack to help with handling errors from FFI functions.

runAccess :: String -> String -> Access a -> NcIO a Source #

Utility function to run access monad stack.

class Checkable a where Source #

Utility class to make dealing with status return from foreign NetCDF functions a little easier.

Associated Types

type OutType a :: * Source #

Methods

status :: a -> Int Source #

proj :: a -> OutType a Source #

Instances
Checkable Int Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType Int :: Type Source #

Checkable (Int, a) Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType (Int, a) :: Type Source #

Methods

status :: (Int, a) -> Int Source #

proj :: (Int, a) -> OutType (Int, a) Source #

Checkable (Int, a, b) Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType (Int, a, b) :: Type Source #

Methods

status :: (Int, a, b) -> Int Source #

proj :: (Int, a, b) -> OutType (Int, a, b) Source #

Checkable (Int, a, b, c) Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType (Int, a, b, c) :: Type Source #

Methods

status :: (Int, a, b, c) -> Int Source #

proj :: (Int, a, b, c) -> OutType (Int, a, b, c) Source #

Checkable (Int, a, b, c, d) Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType (Int, a, b, c, d) :: Type Source #

Methods

status :: (Int, a, b, c, d) -> Int Source #

proj :: (Int, a, b, c, d) -> OutType (Int, a, b, c, d) Source #

Checkable (Int, a, b, c, d, e) Source # 
Instance details

Defined in Data.NetCDF.Utils

Associated Types

type OutType (Int, a, b, c, d, e) :: Type Source #

Methods

status :: (Int, a, b, c, d, e) -> Int Source #

proj :: (Int, a, b, c, d, e) -> OutType (Int, a, b, c, d, e) Source #

chk :: Checkable a => IO a -> Access (OutType a) Source #

Perform an IO action that returns a tuple with an integer status and some return values, processing errors.