@@ -698,7 +698,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
698698 paras [ line $ " In the FFI module for " <> markCode (runModuleName mn) <> " :"
699699 , indent . paras $
700700 [ line $ " The identifier " <> markCode ident <> " contains a prime (" <> markCode " '" <> " )."
701- , line $ " Primes in identifiers exported from FFI modules are deprecated and won’t be supported in the future."
701+ , line " Primes in identifiers exported from FFI modules are deprecated and won’t be supported in the future."
702702 ]
703703 ]
704704 renderSimpleErrorMessage InvalidDoBind =
@@ -793,14 +793,14 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
793793 renderSimpleErrorMessage (CycleInTypeClassDeclaration [name]) =
794794 paras [ line $ " A type class '" <> markCode (runProperName (disqualify name)) <> " ' may not have itself as a superclass." ]
795795 renderSimpleErrorMessage (CycleInTypeClassDeclaration names) =
796- paras [ line $ " A cycle appears in a set of type class definitions:"
796+ paras [ line " A cycle appears in a set of type class definitions:"
797797 , indent $ line $ " {" <> T. intercalate " , " (map (markCode . runProperName . disqualify) names) <> " }"
798798 , line " Cycles are disallowed because they can lead to loops in the type checker."
799799 ]
800800 renderSimpleErrorMessage (CycleInKindDeclaration [name]) =
801801 paras [ line $ " A kind declaration '" <> markCode (runProperName (disqualify name)) <> " ' may not refer to itself in its own signature." ]
802802 renderSimpleErrorMessage (CycleInKindDeclaration names) =
803- paras [ line $ " A cycle appears in a set of kind declarations:"
803+ paras [ line " A cycle appears in a set of kind declarations:"
804804 , indent $ line $ " {" <> T. intercalate " , " (map (markCode . runProperName . disqualify) names) <> " }"
805805 , line " Kind declarations may not refer to themselves in their own signatures."
806806 ]
@@ -949,7 +949,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
949949 [ line (showQualified runProperName nm)
950950 , Box. vcat Box. left (map prettyTypeAtom ts)
951951 ]
952- , line $ fold $
952+ , line $ fold
953953 [ " because the "
954954 , markCode (showQualified runProperName nm)
955955 , " type class has "
@@ -985,11 +985,11 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
985985 renderSimpleErrorMessage (OverlappingArgNames ident) =
986986 line $ " Overlapping names in function/binder" <> foldMap ((" in declaration " <> ) . showIdent) ident
987987 renderSimpleErrorMessage (MissingClassMember identsAndTypes) =
988- paras $ [ line " The following type class members have not been implemented:"
989- , Box. vcat Box. left
990- [ markCodeBox $ Box. text (T. unpack (showIdent ident)) Box. <> " :: " Box. <> prettyType ty
991- | (ident, ty) <- NEL. toList identsAndTypes ]
992- ]
988+ paras [ line " The following type class members have not been implemented:"
989+ , Box. vcat Box. left
990+ [ markCodeBox $ Box. text (T. unpack (showIdent ident)) Box. <> " :: " Box. <> prettyType ty
991+ | (ident, ty) <- NEL. toList identsAndTypes ]
992+ ]
993993 renderSimpleErrorMessage (ExtraneousClassMember ident className) =
994994 line $ " " <> markCode (showIdent ident) <> " is not a member of type class " <> markCode (showQualified runProperName className)
995995 renderSimpleErrorMessage (ExpectedType ty kind) =
@@ -1107,7 +1107,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
11071107 renderSimpleErrorMessage (MissingKindDeclaration sig name ty) =
11081108 let sigKw = prettyPrintKindSignatureFor sig in
11091109 paras [ line $ " The inferred kind for the " <> sigKw <> " declaration " <> markCode (runProperName name) <> " contains polymorphic kinds."
1110- , line $ " Consider adding a top-level kind signature as a form of documentation."
1110+ , line " Consider adding a top-level kind signature as a form of documentation."
11111111 , markCodeBox $ indent $ Box. hsep 1 Box. left
11121112 [ line $ sigKw <> " " <> runProperName name <> " ::"
11131113 , prettyTypeWithDepth maxBound ty
@@ -1173,7 +1173,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
11731173 ]
11741174 renderSimpleErrorMessage msg@ (ImplicitQualifiedImportReExport importedModule asModule _) =
11751175 paras [ line $ " Module " <> markCode (runModuleName importedModule) <> " was imported as " <> markCode (runModuleName asModule) <> " with unspecified imports."
1176- , line $ " As this module is being re-exported, consider using the explicit form:"
1176+ , line " As this module is being re-exported, consider using the explicit form:"
11771177 , indent $ line $ markCode $ showSuggestion msg
11781178 ]
11791179
@@ -1252,9 +1252,9 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
12521252 ]
12531253
12541254 renderSimpleErrorMessage (CannotDefinePrimModules mn) =
1255- paras $
1255+ paras
12561256 [ line $ " The module name " <> markCode (runModuleName mn) <> " is in the Prim namespace."
1257- , line $ " The Prim namespace is reserved for compiler-defined terms."
1257+ , line " The Prim namespace is reserved for compiler-defined terms."
12581258 ]
12591259
12601260 renderSimpleErrorMessage (MixedAssociativityError opsWithAssoc) =
@@ -1300,7 +1300,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
13001300 renderSimpleErrorMessage (VisibleQuantificationCheckFailureInType var) =
13011301 paras
13021302 [ line $ " Visible dependent quantification of type variable " <> markCode var <> " is not supported."
1303- , line $ " If you would like this feature supported, please bother Liam Goodacre (@LiamGoodacre)."
1303+ , line " If you would like this feature supported, please bother Liam Goodacre (@LiamGoodacre)."
13041304 ]
13051305
13061306 renderSimpleErrorMessage (UnsupportedTypeInKind ty) =
@@ -1330,7 +1330,7 @@ prettyPrintSingleError (PPEOptions codeColor full level showDocs relPath) e = fl
13301330 ]
13311331
13321332 renderSimpleErrorMessage UnsupportedRoleDeclaration =
1333- line $ " Role declarations are only supported for data types, not for type synonyms nor type classes."
1333+ line " Role declarations are only supported for data types, not for type synonyms nor type classes."
13341334
13351335 renderSimpleErrorMessage (RoleDeclarationArityMismatch name expected actual) =
13361336 line $ T. intercalate " "
0 commit comments