Skip to content
Snippets Groups Projects
Commit 309eee74 authored by Simon Marlow's avatar Simon Marlow Committed by pcapriotti
Browse files

applying simonpj's fix from #7022 (with 80-col reformatting)

MERGED from commit 15e4f93b
parent 2e1a0cb7
No related branches found
No related tags found
No related merge requests found
...@@ -1498,8 +1498,12 @@ tyConToIfaceDecl env tycon ...@@ -1498,8 +1498,12 @@ tyConToIfaceDecl env tycon
(syn_rhs, syn_ki) (syn_rhs, syn_ki)
= case synTyConRhs tycon of = case synTyConRhs tycon of
SynFamilyTyCon -> (Nothing, tidyToIfaceType env1 (synTyConResKind tycon)) SynFamilyTyCon ->
SynonymTyCon ty -> (Just (toIfaceType ty), tidyToIfaceType env1 (typeKind ty)) ( Nothing
, tidyToIfaceType env1 (synTyConResKind tycon) )
SynonymTyCon ty ->
( Just (tidyToIfaceType env1 ty)
, tidyToIfaceType env1 (typeKind ty) )
ifaceConDecls (NewTyCon { data_con = con }) = IfNewTyCon (ifaceConDecl con) ifaceConDecls (NewTyCon { data_con = con }) = IfNewTyCon (ifaceConDecl con)
ifaceConDecls (DataTyCon { data_cons = cons }) = IfDataTyCon (map ifaceConDecl cons) ifaceConDecls (DataTyCon { data_cons = cons }) = IfDataTyCon (map ifaceConDecl cons)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment