blob: e828a273e630c23a5e8a4155ab20ea63b02668d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{-# LANGUAGE TemplateHaskell #-}
module T18740d where
import Language.Haskell.TH
-- If we used 'ConE' here, then we would expect this error message:
--
-- Illegal term-level use of the type constructor ‘Bool’
-- imported from ‘Prelude’ at T18740d.hs:3:8-14
-- (and originally defined in ‘GHC.Types’)
--
-- But we used 'VarE', so the error message should say:
--
-- Illegal variable name: ‘Bool’
--
e1 = $(return (VarE ''Bool))
|