vty/test/HereDoc.hs

13 lines
393 B
Haskell
Raw Normal View History

{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
2017-01-22 20:22:15 +03:00
-- From http://www.reddit.com/r/haskell/comments/8ereh/a_here_document_syntax/
-- copyright unknown?
module HereDoc (heredoc) where
import Language.Haskell.TH.Quote
import Language.Haskell.TH.Syntax
import Language.Haskell.TH.Lib
heredoc :: QuasiQuoter
2011-05-20 00:03:46 +04:00
heredoc = QuasiQuoter (litE . stringL) (litP . stringL) undefined undefined