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

alias module name #237

Open
lpil opened this issue Jan 12, 2018 · 1 comment
Open

alias module name #237

lpil opened this issue Jan 12, 2018 · 1 comment

Comments

@lpil
Copy link
Contributor

lpil commented Jan 12, 2018

Hello!

When we've got lots of lovely Alpaca modules out in the world I could see it being handy to have a way of aliasing a module name so that it can used in a qualified sense without lots of typing.

alias my_cool_framework_special_set_type as cool_set

let x =
  cool_set.new [1, 2]

Carried over from : #221 (comment)

@j14159
Copy link
Collaborator

j14159 commented Jan 13, 2018

I like it but it will be relatively low priority on my personal task list for the next little while (happy if someone else picks it up).

Is there a way we can make it more clear that a module is being aliased? Do we need/want the ability to do this for other things (like types) or would that get too messy? Some minor concerns with how we annotate compiled output/report on errors as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants