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

Expose library component #45

Open
Fuuzetsu opened this issue Aug 23, 2014 · 1 comment
Open

Expose library component #45

Fuuzetsu opened this issue Aug 23, 2014 · 1 comment

Comments

@Fuuzetsu
Copy link
Member

It'd be super nice if Alex exposed some of the types it uses so that any functions working with them don't have to be included directly into the lexers.

For example, in Yi wi have to #include https://github.com/yi-editor/yi/blob/master/yi/src/library/Yi/Lexer/common.hsinc in every lexer we want to use the functions in: if we try to move them to a regular Haskell module, we don't have the types in scope when necessary.

@stites
Copy link
Contributor

stites commented Sep 28, 2017

I just tried to split out the executable from the library and am getting errors about .x files not being able to find imported haskell modules -- so this ticket isn't as simple as I hoped it to be. Are there any pointers for this ticket? Alternatively, a .x file being able to read from some haskell source (with alex types) is exactly the problem the common.hsinc was made to work around, so understanding this better would, in my mind, also close this ticket.

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