Skip to content

CRogers/ghcjs-from-typescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ghcjs-from-typescript

The goal of this project is to generate Haskell FFI bindings from TypeScript definition files. In particular, the initial goal has been to get convert a TypeScript binding for the Ace editor.

The conversion to a raw binding already works. However, ace.d.ts had to be modified a bit due to deficiencies in language-typescript:

  • top level var declarations with object types commented out, as they cause parsing to fail.

  • export keywords are removed by string substituion, as they cause parsing to fail.

Running it on ace.d.ts

Here's what I'm currently using to run this:

rm -r output; runhaskell src/GHCJSFromTypeScript.hs && cd ghcjs-ace && cabal --config-file=../../../cabal-ghcjs-config install --ghcjs && cd ..

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 100.0%