Open qrilka opened 8 years ago
I was trying to use qReadFileText for example but just foo = $(qReadFileText "my/file") results in
qReadFileText
foo = $(qReadFileText "my/file")
Expected type: Language.Haskell.TH.Lib.ExpQ Actual type: Language.Haskell.TH.Syntax.Q Text
And I couldn't find any better variants yet...
Hi! You want qReadFileText "my/file" >>= lift, perhaps with a use of Data.Text.unpack. Seems like a good thing to document, indeed.
qReadFileText "my/file" >>= lift
Data.Text.unpack
I was trying to use
qReadFileText
for example but justfoo = $(qReadFileText "my/file")
results inAnd I couldn't find any better variants yet...