| 1 |
{-# LANGUAGE CPP #-} |
| 2 |
|
| 3 |
-- | |
| 4 |
-- Module : Language.Haskell.TH.Compat.Reify |
| 5 |
-- Copyright : 2016 Kei Hibino |
| 6 |
-- License : BSD3 |
| 7 |
-- |
| 8 |
-- Maintainer : [email protected] |
| 9 |
-- Stability : experimental |
| 10 |
-- Portability : unknown |
| 11 |
-- |
| 12 |
-- This module provides compatibility definitions of |
| 13 |
-- destructuring result type of reify for before temaplate-haskell-2.11 |
| 14 |
module Language.Haskell.TH.Compat.Reify ( |
| 15 |
-- * Interfaces to destruct reify result |
| 16 |
unClassOpI, unDataConI, unVarI, |
| 17 |
|
| 18 |
-- * Interface to get operator fixity |
| 19 |
reifyFixity, |
| 20 |
|
| 21 |
-- * Interface of type alias name |
| 22 |
ParentName, |
| 23 |
) where |
| 24 |
|
| 25 |
#if MIN_VERSION_template_haskell(2,11,0) |
| 26 |
import Language.Haskell.TH.Compat.Reify.Current |
| 27 |
#else |
| 28 |
import Language.Haskell.TH.Compat.Reify.V210 |
| 29 |
#endif |