Popularity
5.5
Declining
Activity
0.0
Stable
10
3
3
Monthly Downloads: 19
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Foreign
c-storable-deriving alternatives and similar packages
Based on the "Foreign" category.
Alternatively, view c-storable-deriving alternatives based on common mentions on social networks and blogs.
-
language-c-inline
Inline C & Objective-C in Haskell -
erlang
A Foreign Function Interface that lets Haskell and Erlang programs communicate. -
emacs-module
Wrappers around emacs-module.h to write Emacs modules in Haskell -
libnix
Haskell library to interface with the nix package manager -
greencard
Green Card, a foreign function interface pre-processor for Haskell. -
htaglib
Haskell bindings for TagLib, an audio meta-data library -
tasty-lua
Integrate Lua tests into tasty. This package is now part of the hslua monorepo. -
hslua-module-text
Lua module providing a selected set of operations on Text. NOTE: moved into the hslua monorepo. -
hslua-module-system
HsLua module for system and directory functions. This repository has been moved to the hslua monorepo. -
cusolver
Haskell FFI bindings to CUDA Solver, a LAPACK-like library -
hslua-module-doclayout
Lua module wrapping Text.DocLayout. -
marshal-contt
A ContT-based wrapper for Haskell-to-C marshalling functions. -
hlibcpuid
Haskell bindings to https://github.com/anrieff/libcpuid -
foreign-storable-asymmetric
Types and instances for implementing a Storable with different peek and poke
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of c-storable-deriving or a related project?
Popular Comparisons
README
c-storable-deriving
This library is intended to make generating C-like storable instances from datatypes easy.
Example
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
import GHC.Generics (Generic(..))
import Foreign (Storable(..))
import Foreign.CStorable (CStorable(..))
-- | a two-dimensional point.
-- Compatible with both OSX's @CGPoint@ and Window's @POINT@.
data Point = Point
{ x :: Double
, y :: Double
} deriving (Generic, CStorable)
instance Storable Point where
peek = cPeek
poke = cPoke
alignment = cAlignment
sizeOf = cSizeOf
See the haddocks for further details: Foreign.CStorable