35 lines
536 B
Plaintext
35 lines
536 B
Plaintext
#group extensions/quasiquotes
|
|
|
|
|
|
#test quasi-quotes simple 1
|
|
{-# LANGUAGE QuasiQuotes #-}
|
|
func = [blub|
|
|
asd
|
|
qwe
|
|
|]
|
|
|
|
#test quasi-quotes simple 2
|
|
{-# LANGUAGE QuasiQuotes #-}
|
|
func = [blub|
|
|
asd
|
|
qwe|]
|
|
|
|
#test quasi-quotes ignoring layouting
|
|
{-# LANGUAGE QuasiQuotes #-}
|
|
func = do
|
|
let body = [json|
|
|
hello
|
|
|]
|
|
pure True
|
|
|
|
#test quasi-quotes ignoring layouting, strict mode
|
|
-- brittany { lconfig_allowHangingQuasiQuotes: False }
|
|
{-# LANGUAGE QuasiQuotes #-}
|
|
func = do
|
|
let
|
|
body =
|
|
[json|
|
|
hello
|
|
|]
|
|
pure True
|