[Haskell-beginners] Overlapping instances via Nat-kind

Dannyu NDos ndospark320 at gmail.com
Wed Jan 2 08:38:40 UTC 2019

Hi everyone. I'm not so skillful with GADTs and DataKinds, so I assume this
mailing list is appropriate to post on.

Basically, I wanted to do GADT like this (involving GHC.TypeNats):

data Symmetric (n :: Nat) where
    S1 :: Symmetric 1
    (:.) :: (KnownNat n, 2 <= n) => Cyclic n -> Symmetric (n-1) -> Symmetric n

But I had some issues with this. The full question is here (on Stack


Dannyu NDos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20190102/4a7c1e03/attachment.html>

More information about the Beginners mailing list