Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-export modules from 'base' #58

Closed
cdsmith opened this issue Aug 15, 2014 · 1 comment
Closed

Re-export modules from 'base' #58

cdsmith opened this issue Aug 15, 2014 · 1 comment
Labels
discussion Needs more information or major design decisions

Comments

@cdsmith
Copy link
Collaborator

cdsmith commented Aug 15, 2014

We should add re-exports from the base package in codeworld-base. This works around the inability to import packages from base (because we hide it to allow imports from codeworld-base).

base:Prelude should be re-exported as HaskellPrelude
Other common modules (Data.List, Data.Function, Control.Monad, etc.) should be re-exported.

For types, it's important to re-export the same types, since other packages that can be imported directly from student programs will depend on them.

@cdsmith
Copy link
Collaborator Author

cdsmith commented Aug 16, 2014

The hardest part here is listing which modules to re-export. Then it just comes down to writing a bunch of files like:

{-# LANGUAGE PackageImports #-}
module HaskellPrelude (module M) where
import qualified "base" Prelude as M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Needs more information or major design decisions
Projects
None yet
Development

No branches or pull requests

1 participant