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

Cabal type provider extension #6

Open
ocramz opened this issue Jul 20, 2018 · 1 comment
Open

Cabal type provider extension #6

ocramz opened this issue Jul 20, 2018 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@ocramz
Copy link
Member

ocramz commented Jul 20, 2018

Proposal for .cabal extension

Instead of building normal executable, we would mark it type-provider:

type-provider ExcelTypeProvider.hs
  mime-types: text/plain
  glob: *.xlsx

It can either have a list of glob patterns for matching file and directory names, or have mime-types for matching MIME type (warning: MIME type matching may work differently on different operating systems!).

@ocramz ocramz added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Jul 20, 2018
@ocramz
Copy link
Member Author

ocramz commented Jul 22, 2018

This one is such a cool idea I had to investigate; Cabal pre-processors seem to be a good starting point: https://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Distribution-Simple-PreProcess.html#t:PreProcessor .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant