# futhask-base
Base library for Haskell libraries generated from [Futhark](https://www.futhark-lang.org) libraries with [Futhask](https://gitlab.com/Gusten_Isfeldt/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.