- [x] Hello World from #haskell in #python via compiled dynamically linked shared library
- [x] Convert an rtf file via #pandoc in a #python script with a dynamic library instead of a CLI wrapper

On top the compiled version (rtf to html only for now), below the #pypandoc cli wrapper.

#pandoc #python #cli

Aaaand we got #docx support.

Now I need to figure out how to compile the lib for platforms other than mine and package all this as a lib. All of this works because Haskell has a great foreign function interface (https://www.haskell.org/onlinereport/haskell2010/haskellch8.html) so you can create a C wrapper for initializing the haskell runtime and write some interface code in Haskell and call these functions from python. Love it so far.

#python #haskell #cli #pandoc

8 Foreign Function Interface

Currently trying to statically link all of this to make it distributable/installable without runtime dependencies and I am not sure if I hit a wall with this approach. Does anyone know about a python project that ships statically linked haskell code?

#python #haskell #ghc #gcc #cli #pandoc