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

Any examples for functions from TH.RelativePaths ? #3

Open
qrilka opened this issue Sep 20, 2016 · 1 comment
Open

Any examples for functions from TH.RelativePaths ? #3

qrilka opened this issue Sep 20, 2016 · 1 comment

Comments

@qrilka
Copy link

qrilka commented Sep 20, 2016

I was trying to use qReadFileText for example but just foo = $(qReadFileText "my/file") results in

       Expected type: Language.Haskell.TH.Lib.ExpQ
       Actual type: Language.Haskell.TH.Syntax.Q Text

And I couldn't find any better variants yet...

@mgsloan
Copy link
Collaborator

mgsloan commented Sep 21, 2016

Hi! You want qReadFileText "my/file" >>= lift, perhaps with a use of Data.Text.unpack. Seems like a good thing to document, indeed.

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