Two fixes in GF.Grammar.Canonical

+ Hide Prelude.<> to avoid ambiguity with ghc-8.6
+ Vertical alternative in the pretty printer for table types A => B
This commit is contained in:
Thomas Hallgren
2019-01-18 14:44:45 +01:00
parent fc1b51aa95
commit 71307d6518

View File

@@ -2,6 +2,7 @@
-- high-level constructions such as functors and opers have been eliminated
-- by partial evaluation.
module GF.Grammar.Canonical where
import Prelude hiding ((<>))
import GF.Text.Pretty
-- | A Complete grammar
@@ -169,7 +170,7 @@ instance Pretty LinType where
ParamType pt -> pp pt
RecordType rs -> block rs
StrType -> pp "Str"
TableType pt lt -> pt <+> "=>" <+> lt
TableType pt lt -> sep [pt <+> "=>",pp lt]
TupleType lts -> "<"<>punctuate "," lts<>">"
instance RhsSeparator LinType where rhsSep _ = pp ":"