Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

How we can include prelude? #24

Open
unclechu opened this issue Jul 12, 2015 · 4 comments
Open

How we can include prelude? #24

unclechu opened this issue Jul 12, 2015 · 4 comments

Comments

@unclechu
Copy link
Contributor

There's any way to use prelude.ls like that?:

lsc --prelude main.ls

It includes prelude.ls methods to main scope.

@chrisfls
Copy link

chrisfls commented Aug 2, 2015

I think it's not in the scope of the plugin.

I mean, it's possible, but it's not worth it, would require adding "requires" to the beginning of each compiled file.

@tomchentw
Copy link
Owner

Agree with @kress95

@unclechu unclechu closed this as completed Aug 5, 2015
@unclechu unclechu reopened this Aug 5, 2015
@unclechu
Copy link
Contributor Author

unclechu commented Aug 5, 2015

@kress95 ok, I can use require \prelude-ls but it means I need to include all prelude funcs:

{each, map, filter} = require \prelude-ls

But I wanna to have it all without describing every single func.

@chrisfls
Copy link

chrisfls commented Aug 8, 2015

Use some plugin that adds prefixes like gulp-header and put the requires instead of comments might solve your problems, this plugin is just for compiling the LiveScript code.

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

No branches or pull requests

3 participants