shithub: MicroHs

ref: b352d4fef682acc3e15506cc026e5ca46d08fcee
dir: /lib/Data/TypeLits.hs/

View raw version
module Data.TypeLits(
  Symbol,
  Nat,
  KnownNat(..),
  KnownSymbol(..),
  ) where
import Prelude()
import Primitives
import Data.Char_Type
import Data.Integer

class KnownNat (n :: Nat) where
  natVal :: forall (proxy :: Nat -> Type) . proxy n -> Integer

class KnownSymbol (s :: Symbol) where
  symbolVal :: forall (proxy :: Symbol -> Type) . proxy s -> String