HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulefcf-containers-0.8.2Haskell2010

Fcf.Data.Reflect

Fcf.Data.Reflect

Helpers to get results from type-level computations into the fromType-level.

  • 2 classes
classclass KnownNats (ns :: [Nat]) where
#

Deprecated. Replaced with KnownVal

Reflect a list of Nats

Note that you may also use the KnownVal methods given below.

This method is taken from https://hackage.haskell.org/package/numhask-array-0.10.1/docs/src/NumHask.Array.Shape.html#natVals

Example
:{

afun :: forall n. (n ~ '[1,2,3,4]) => [Int] afun = natVals @n Proxy :}

afun
1,2,3,4

Methods

Instances2KnownNats
classclass KnownVal val (kind :: k) where
#

Methods

Instances28KnownVal, …