mirror of
https://github.com/google/ormolu.git
synced 2024-12-02 23:43:34 +03:00
Implement ‘VarBr’
This commit is contained in:
parent
cad7e40ae5
commit
d82d607b3a
3
data/examples/declaration/splice/quotes-out.hs
Normal file
3
data/examples/declaration/splice/quotes-out.hs
Normal file
@ -0,0 +1,3 @@
|
||||
foo = ''R
|
||||
|
||||
bar = 'foo
|
3
data/examples/declaration/splice/quotes.hs
Normal file
3
data/examples/declaration/splice/quotes.hs
Normal file
@ -0,0 +1,3 @@
|
||||
foo = ''R
|
||||
|
||||
bar = 'foo
|
@ -13,6 +13,7 @@ where
|
||||
import Bag (bagToList)
|
||||
import BasicTypes
|
||||
import Control.Monad
|
||||
import Data.Bool (bool)
|
||||
import Data.Data hiding (Infix, Prefix)
|
||||
import Data.List (intersperse, sortOn)
|
||||
import Data.Text (Text)
|
||||
@ -728,7 +729,9 @@ p_hsBracket = \case
|
||||
DecBrL NoExt decls -> quote "d" (p_hsDecls Free decls)
|
||||
DecBrG NoExt _ -> notImplemented "DecBrG" -- result of renamer
|
||||
TypBr NoExt ty -> quote "t" (located ty p_hsType)
|
||||
VarBr NoExt _ _ -> notImplemented "VarBr"
|
||||
VarBr NoExt isSingleQuote name -> do
|
||||
txt (bool "''" "'" isSingleQuote)
|
||||
p_rdrName (noLoc name)
|
||||
TExpBr NoExt expr -> do
|
||||
txt "[||"
|
||||
breakpoint'
|
||||
|
Loading…
Reference in New Issue
Block a user