mathr / blog / #

hsext proof of concept

hsext proof of concept

... is implemented by ...

module Quux where

import Foreign.C.Types

foreign export ccall quux :: CFloat -> IO CFloat

quux :: CFloat -> IO CFloat
quux f = return (f * f * f);

... plus a load of ugly C wrapper code. Requires: 'ghc', 'gcc', 'pd', 'make', and probably quite some luck to get it to compile and work...

References: