HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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]]