@hackage / futhask-base

Base library for libraries generated by futhask

Latest0.1.0.0

About

Metadata

  • Last updated , by GustenIsfeldt
  • License BSD-3-Clause
  • Categories FFI
  • Maintained by: isfeldt@kth.se

  • Lottery factor: 1

Links

Installation

Readme

futhask-base

Base library for Haskell libraries generated from Futhark libraries with Futhask

Purpose

futhask-base provides classes and functions that can be used by FFI-code generated by futhask. futhask generates bindings to the functions in the C-library, and with those instances of the classes defined here. Some of the functions defined here are highly polymorphic, with long type signatures as they take the library context type as an argument. This is to keep objects locked to their context and to allow the base library to function with multiple generated libraries safely. The generated libraries use type synonyms with the context type preapplied to reduce clutter.