From 1e36a386042248523de69ad6b02c43a6631ed5d0 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Fri, 14 Mar 2014 12:51:37 +0100 Subject: Document Coercible in the user guide as a subsection of "Equality constraints", containing references to the module's haddock and to the paper. Fixes #8888 --- docs/users_guide/glasgow_exts.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'docs/users_guide') diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 4217b7dc41..9dbd545069 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -6729,6 +6729,21 @@ class (F a ~ b) => C a b where with the class head. Method signatures are not affected by that process. + + + The <literal>Coercible</literal> constraint + + The constraint Coercible t1 t2 is similar to t1 ~ + t2, but denotes representational equality between + t1 and t2 in the sense of Roles + (). It is exported by + Data.Coerce, + which also contains the documentation. More details and discussion can be found in + the paper + Safe Coercions". + + + -- cgit v1.2.1