Skip to content
Snippets Groups Projects
Commit 58897e24 authored by Ole's avatar Ole Committed by Marge Bot
Browse files

Add test case for CompleteP pretty-printer (#19270)

parent 6d7086a3
No related branches found
No related tags found
No related merge requests found
# difficult to test TH with profiling, because we have to build twice
test('dataToExpQUnit', [omit_ways(prof_ways), req_interp], compile, ['-v0'])
test('pragCompletePpr', [omit_ways(prof_ways), req_interp], compile_and_run, [''])
module Main (main) where
import Language.Haskell.TH.Ppr (ppr)
import Language.Haskell.TH.Syntax (Dec (PragmaD), Pragma (CompleteP), mkName)
main :: IO ()
main = print $ ppr $ PragmaD $ CompleteP [mkName "Foo", mkName "Bar"] $ Just $ mkName "Bar"
{-# COMPLETE Foo, Bar :: Bar #-}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment