[Haskell-cafe] How to turn Integer into Proxy (n :: KnownNat) with n equal to the integer?

David Banas capn.freako at gmail.com
Fri Aug 3 21:01:17 UTC 2018


I’d like to use Data.Vector.Sized.slice’, but it wants the starting position and length parameters as Proxys, not Integers.
How can I convert an Integer into a Proxy (n :: KnownNat) with n equal to the integer?



More information about the Haskell-Cafe mailing list