MicroHs-0.17.4.0 / tests / TypeLits.hs
module TypeLits(main) whereimport Data.TypeLitsdata PS (s :: Symbol) = PSdata PN (s :: Nat) = PNnatValInt :: forall (n :: Nat) . KnownNat n => PN n -> IntnatValInt p = fromInteger (natVal p)main :: IO ()main = do print $ symbolVal (PS :: PS "hello") print $ natVal (PN :: PN 42) print $ natValInt (PN :: PN 42)