@@ -107,16 +107,16 @@ resolveExports fullList (Var.Listing partialList open) =
107107 case List.find (\(name, _ctors) -> name == alias) allAdts of
108108 Nothing -> notFound [alias]
109109 Just (name, _ctor) ->
110− return [Var.ADT name (Var.Listing [] False)]
110+ return [Var.Union name (Var.Listing [] False)]
111111
112112 getAdtExport (name, Var.Listing ctors open) =
113113 case lookup name allAdts of
114114 Nothing -> notFound [name]
115115 Just (Var.Listing allCtors _)
116− | open -> return $ Var.ADT name (Var.Listing allCtors False)
116+ | open -> return $ Var.Union name (Var.Listing allCtors False)
117117 | otherwise ->
118118 case filter (`notElem` allCtors) ctors of
119− [] -> return $ Var.ADT name (Var.Listing ctors False)
119+ [] -> return $ Var.Union name (Var.Listing ctors False)
120120 unfoundCtors -> notFound unfoundCtors
121121
122122 notFound xs =
@@ -141,7 +141,7 @@ splitValues mixedValues =
141141 Var.Alias name ->
142142 (values, name : aliases, adts)
143143
144− Var.ADT name listing ->
144+ Var.Union name listing ->
145145 (values, aliases, (name, listing) : adts)
146146
147147
@@ -153,7 +153,7 @@ declToValue decl =
153153 map Var.Value (P.boundVarList pattern)
154154
155155 D.Datatype name _tvs ctors ->
156− [ Var.ADT name (Var.Listing (map fst ctors) False) ]
156+ [ Var.Union name (Var.Listing (map fst ctors) False) ]
157157
158158 D.TypeAlias name _ tipe ->
159159 case tipe of