[Haskell-cafe] Converting a Constraint to Bool
Miguel Mitrofanov
miguelimo38 at yandex.ru
Thu Oct 16 11:06:07 UTC 2014
It's a bad idea. See, even if a constraint is not satisfied, there is no reason why it can't be satisfied later, in another module. So, inclusion of another module might change the behaviour of the code that was already compiled.
I'm sure that after some oleging you'd find something that is more or less similar to what you want, but it's still a bad idea.
16.10.2014, 14:58, "Ivan Lazar Miljenovic" <ivan.miljenovic at gmail.com>:
> Using the Constraint type and the ConstraintKinds extension, is there
> any way we can determine if a Constraint is satisfied (i.e. a
> type-level function of type Constraint -> Bool using DataKinds)?
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> http://IvanMiljenovic.wordpress.com
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list