[Haskell-beginners] Structural restrictions in type constructor

Matt Williams matt.williams45.mw at gmail.com
Mon Jun 22 10:29:40 UTC 2015


Dear All,

I wonder if/ how this is possible?

I have a constructor which takes 2 pairs of type t).

However, I want to ensure that the pairs are matched:

MyP = MyP (t, t) (t, t)

But where the first pair contains the same elements as the second, but
reversed in order.

Any help much appreciated.

BW,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150622/15b19e23/attachment.html>


More information about the Beginners mailing list