HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulederiving-compat-0.6.8Haskell2010

Data.Ix.Deriving.Internal

Exports functions to mechanically derive Ix instances.

Note: this is an internal module, and as such, the API presented here is not guaranteed to be stable, even between minor releases of this library.

Contents
  1. Ix
Synopsis

Ix

valuederiveIx :: Name -> Q [Dec]

Generates a Ix instance declaration for the given data type or data family instance.

valuemakeRange :: Name -> Q Exp

Generates a lambda expression which behaves like range (without requiring an Ix instance).

valuemakeInRange :: Name -> Q Exp

Generates a lambda expression which behaves like inRange (without requiring an Ix instance).