yesod - Can template-haskell be used to generate quasi-quotes? -


A project on which I am currently working on consistently uses to make models To specify, instead of the semi-quoted dialect of constant , I would like to use json right now, i quasiquote which use constant simple template Hopes to use a script to generate it adds a weird step in the workflow Is this the template-haskell ?

This can be avoided by currently being generated by the script:

  - File: ProjSpecific.Models shared [MkPersist sqlSettings, MkAmgrgr "Migrated" ] [Continued lauer cass |   

and

  - file: Prozecic   

How can this be done, but what is the best way to do this with what I am trying to do?

Yes, it should be relatively painless You must essentially call the field persistLowerCase You want to use, which will give you the string - & gt; Q Exp . Use your preprocessor to convert JSON to the expected syntax, and then pass it to the function.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -