Creating module in Code World haskell


341
views
0
9 months ago by
Its posible to include some function declarations or type from other file in Code World haskell?
I tried with import module from other file but haskell didnt see them.
Community: CodeWorld

1 Answer


0
9 months ago by
Sorry, but it's not currently possible to create and import your own libraries in CodeWorld.  The system assume that each project is independent of other projects.  Importing other CodeWorld projects is a bigger job, and is being tracked at https://github.com/google/codeworld/issues/12.  To date, no work has been done on this.

In http://code.world/haskell, there are a few third-party libraries available, though, and you can import modules from those.  The only three that are currently guaranteed are base, codeworld-api, and QuickCheck.  But in practice, you can also use aeson, array, attoparsec, bytestring, containers, ghcjs-base, ghcjs-dom, mtl, parsec, random, stm, text, time, transformers, unordered-containers, and vector, among others.  If you need more third-party libraries, feel free to request them at https://github.com/google/codeworld/issues.  
Please login to add an answer/comment or follow this question.

Similar posts:
Search »