Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ test30 SNat = SNat @(Log b)
test31 :: (KnownNat n, KnownNat m, k ~ (n + m)) => proxy n -> proxy m -> proxy k -> Natural
test31 _ _ = natVal

type family Stuck (a :: Type) :: Nat

test32 :: forall a . (KnownNat (1 + Stuck a)) => Proxy a -> Number
test32 _ = natVal (Proxy @(Stuck a))

tests :: TestTree
tests = testGroup "ghc-typelits-natnormalise"
[ testGroup "Basic functionality"
Expand Down
Loading