Skip to content

Use Haskell libraries from Agda directly!

Notifications You must be signed in to change notification settings

zamfofex/agda-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GHC API Haskell FFI directive generation for Agda

What is this?

This is a Haskell project that aims to allow people to use Haskell libraries from Agda directly, without having to write the FFI directive for themselves.

It uses the GHC API to inspect Haskell intermediate files (.hi) to generate Agda files containing datatype and record type declarations corresponding to their Haskell counterparts, as well as postulates for the Haskell functions. Although it has yet to be implemented, the goal is to also generate FFI directives to associate the generated Agda postulates with their Haskell counterparts.

Building

The only way I have tried building and using the project is by running cabal new-build, and running the generated executable through its full path.

Patches

Patches, issue reports, suggestions, as well as general discussions about the project are really appreciated!

License

I don’t know. 🤷 If you have any suggestions for a good license, feel free to let me know! I’m inclined to use Creative Commons Zero in the future.

About

Use Haskell libraries from Agda directly!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published