@@ -9,15 +9,12 @@
99{-# LANGUAGE ScopedTypeVariables #-}
1010{-# LANGUAGE TypeApplications #-}
1111{-# LANGUAGE TemplateHaskell #-}
12−{-# LANGUAGE CPP #-}
1312
1413module Main where
1514
1615import GHC.Generics
1716import Data.Generics.Product
18−#if MIN_VERSION_GLASGOW_HASKELL(8,2,0,0)
1917import Test.Inspection
20−#endif
2118
2219main :: IO ()
2320main = putStrLn "Hello world"
@@ -63,11 +60,7 @@ fieldALensPos = position @1
6360subtypeLensGeneric :: Lens' Record Record2
6461subtypeLensGeneric = super
6562
66−#if MIN_VERSION_GLASGOW_HASKELL(8,2,0,0)
67−-- It turns out that these equalities only hold with ghc-8.2 or newer,
68−-- probably due to improvements to CSE
6963inspect $ 'fieldALensManual === 'fieldALensName
7064inspect $ 'fieldALensManual === 'fieldALensType
7165inspect $ 'fieldALensManual === 'fieldALensPos
7266inspect $ 'subtypeLensManual === 'subtypeLensGeneric
73−#endif