haskell-suite / haskell-src-exts

Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer
Other
193 stars 94 forks source link

Support Template Haskell Typed Quotes #383

Open ndmitchell opened 6 years ago

ndmitchell commented 6 years ago

Originally reported at https://github.com/ndmitchell/hlint/issues/332 by @MHova, an example:

{-# LANGUAGE TemplateHaskell #-}

module Example where

import Language.Haskell.TH (TExp, Q)

example :: Q (TExp String)
example = [|| "whatever" ||]

Gives a parse error on [|| as typed quotes are not supported.

NorfairKing commented 4 years ago

+1 Both hindent and hlint suffer from this.

DanBurton commented 4 years ago

I'm open to PRs, and would love to make this improvement, but I am unlikely to address this myself anytime soon.