From 426b48ea1cf799c9807ba32565c44f395d98ca1b Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Mar 2018 10:55:59 -0400 Subject: [PATCH] Define LocationFor as an open type family. --- src/Data/Abstract/Value.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Data/Abstract/Value.hs b/src/Data/Abstract/Value.hs index e2acc9e3f..d9e56d2f8 100644 --- a/src/Data/Abstract/Value.hs +++ b/src/Data/Abstract/Value.hs @@ -117,9 +117,9 @@ type CellFor value = Cell (LocationFor value) value type LiveFor value = Live (LocationFor value) value -- | The location type (the body of 'Address'es) which should be used for an abstract value type. -type family LocationFor value :: * where - LocationFor (Value location term) = location - LocationFor Type.Type = Monovariant +type family LocationFor value :: * +type instance LocationFor (Value location term) = location +type instance LocationFor Type.Type = Monovariant -- | Value types, e.g. closures, which can root a set of addresses. class ValueRoots value where