From d1b088eda532fbc31459888fbcb542b10e74e89e Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 26 Apr 2017 18:39:39 -0400 Subject: [PATCH] Work around the lack of Show1 for IntMap in lts. --- src/Data/Syntax/Assignment.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Syntax/Assignment.hs b/src/Data/Syntax/Assignment.hs index de0fcaf58..3c222e568 100644 --- a/src/Data/Syntax/Assignment.hs +++ b/src/Data/Syntax/Assignment.hs @@ -149,7 +149,7 @@ instance Show symbol => Show1 (AssignmentF (Node symbol)) where Location -> showString "Location" . sp d (Info.Range 0 0 :. Info.SourceSpan (Info.SourcePos 0 0) (Info.SourcePos 0 0) :. Nil) Source -> showString "Source" . showChar ' ' . sp d "" Children a -> showsUnaryWith (liftShowsPrec sp sl) "Children" d a - Choose choices -> showsUnaryWith (liftShowsPrec sp sl) "Choose" d choices + Choose choices -> showsUnaryWith (liftShowsPrec (liftShowsPrec sp sl) (liftShowList sp sl)) "Choose" d (IntMap.toList choices) Alt a b -> showsBinaryWith sp sp "Alt" d a b Empty -> showString "Empty"