[Haskell-cafe] Data.Text and quasi quoting

Jake Wheat jakewheatmail at gmail.com
Tue Oct 2 12:12:13 CEST 2012


Hello,

I have a parser which parses to an ast which contains Text values. I
am trying to use this parser with quasiquoting, but the implementation
of Data for Text is incomplete. I've attached a smallish test case,
when I try to compile Text.hs I get:

Text.hs:17:9:
    Exception when trying to run compile-time code:
      Data.Text.Text.toConstr
      Code: Language.Haskell.TH.Quote.quoteExp expr " test "

Is there a way to get this working?

Thanks,
Jake.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Parser.hs
Type: text/x-haskell
Size: 1454 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121002/95f65081/attachment.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Quasi.hs
Type: text/x-haskell
Size: 751 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121002/95f65081/attachment-0001.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Syntax.hs
Type: text/x-haskell
Size: 210 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121002/95f65081/attachment-0002.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Text.hs
Type: text/x-haskell
Size: 265 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121002/95f65081/attachment-0003.hs>


More information about the Haskell-Cafe mailing list