HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleoptics-th-0.4.1Haskell2010

Optics.TH.Internal.Utils

Synopsis
  • Packageoptics-th-0.4.1
  • Exports17
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUtils.hs
valuerequireExtensions :: String -> [[Extension]] -> Q ()

Pass in a list of lists of extensions, where any of the given extensions will satisfy it. For example, you might need either GADTs or ExistentialQuantification, so you'd write:

requireExtensions [[GADTs, ExistentialQuantification]]

But if you need TypeFamilies and MultiParamTypeClasses, then you'd write:

requireExtensions [[TypeFamilies], [MultiParamTypeClasses]]