@@ -637,7 +637,7 @@ prettyPrintSingleError full level showWiki e = flip evalState defaultUnknownMap
637 renderSimpleErrorMessage (CycleInDeclaration nm) =
637 renderSimpleErrorMessage (CycleInDeclaration nm) =
638 line $ "The value of " ++ showIdent nm ++ " is undefined here, so this reference is not allowed."
638 line $ "The value of " ++ showIdent nm ++ " is undefined here, so this reference is not allowed."
639 renderSimpleErrorMessage (CycleInModules mns) =
639 renderSimpleErrorMessage (CycleInModules mns) =
640− paras [ line $ "There is a cycle in module dependencies in these modules: "
640+ paras [ line "There is a cycle in module dependencies in these modules: "
641 , indent $ paras (map (line . runModuleName) mns)
641 , indent $ paras (map (line . runModuleName) mns)
643 renderSimpleErrorMessage (CycleInTypeSynonym name) =
643 renderSimpleErrorMessage (CycleInTypeSynonym name) =
@@ -671,7 +671,7 @@ prettyPrintSingleError full level showWiki e = flip evalState defaultUnknownMap
671 sortRows' :: ([(String, Type)], Type) -> ([(String, Type)], Type) -> (Type, Type)
671 sortRows' :: ([(String, Type)], Type) -> ([(String, Type)], Type) -> (Type, Type)
672 sortRows' (s1, r1) (s2, r2) =
672 sortRows' (s1, r1) (s2, r2) =
673 let common :: [(String, (Type, Type))]
673 let common :: [(String, (Type, Type))]
674− common = sortBy (comparing fst) $ [ (name, (t1, t2)) | (name, t1) <- s1, (name', t2) <- s2, name == name' ]
674+ common = sortBy (comparing fst) [ (name, (t1, t2)) | (name, t1) <- s1, (name', t2) <- s2, name == name' ]
676 sd1, sd2 :: [(String, Type)]
676 sd1, sd2 :: [(String, Type)]
677 sd1 = [ (name, t1) | (name, t1) <- s1, name `notElem` map fst s2 ]
677 sd1 = [ (name, t1) | (name, t1) <- s1, name `notElem` map fst s2 ]
@@ -840,8 +840,9 @@ prettyPrintSingleError full level showWiki e = flip evalState defaultUnknownMap
840 paras [ line "A case expression could not be determined to cover all inputs."
840 paras [ line "A case expression could not be determined to cover all inputs."
841 , line "The following additional cases are required to cover all inputs:\n"
841 , line "The following additional cases are required to cover all inputs:\n"
842 , indent $ paras $
842 , indent $ paras $
843− [ Box.hsep 1 Box.left (map (paras . map (line . prettyPrintBinderAtom)) (transpose bs)) ]
844+ (map (paras . map (line . prettyPrintBinderAtom)) (transpose bs))
844− ++ [ line "..." | not b ]
845+ : [line "..." | not b]
845 , line "Or alternatively, add a Partial constraint to the type of the enclosing value."
846 , line "Or alternatively, add a Partial constraint to the type of the enclosing value."
846 , line "Non-exhaustive patterns for values without a `Partial` constraint will be disallowed in PureScript 0.9."
847 , line "Non-exhaustive patterns for values without a `Partial` constraint will be disallowed in PureScript 0.9."
@@ -973,7 +974,7 @@ prettyPrintSingleError full level showWiki e = flip evalState defaultUnknownMap
973 line "An anonymous function argument appears in an invalid context."
974 line "An anonymous function argument appears in an invalid context."
975 renderSimpleErrorMessage (InvalidOperatorInBinder op fn) =
976 renderSimpleErrorMessage (InvalidOperatorInBinder op fn) =
976− paras $ [ line $ "Operator " ++ showIdent op ++ " cannot be used in a pattern as it is an alias for function " ++ showIdent fn ++ "."
977+ paras [ line $ "Operator " ++ showIdent op ++ " cannot be used in a pattern as it is an alias for function " ++ showIdent fn ++ "."
977 , line "Only aliases for data constructors may be used in patterns."
978 , line "Only aliases for data constructors may be used in patterns."
@@ -1197,11 +1198,11 @@ prettyPrintMultipleWarnings full = unlines . map renderBox . prettyPrintMultiple
1198-- | Pretty print warnings as a Box
1199-- | Pretty print warnings as a Box
1199prettyPrintMultipleWarningsBox :: Bool -> MultipleErrors -> [Box.Box]
1200prettyPrintMultipleWarningsBox :: Bool -> MultipleErrors -> [Box.Box]
1200−prettyPrintMultipleWarningsBox full = prettyPrintMultipleErrorsWith Warning "Warning found:" "Warning" full
1201+prettyPrintMultipleWarningsBox = prettyPrintMultipleErrorsWith Warning "Warning found:" "Warning"
1202-- | Pretty print errors as a Box
1203-- | Pretty print errors as a Box
1203prettyPrintMultipleErrorsBox :: Bool -> MultipleErrors -> [Box.Box]
1204prettyPrintMultipleErrorsBox :: Bool -> MultipleErrors -> [Box.Box]
1204−prettyPrintMultipleErrorsBox full = prettyPrintMultipleErrorsWith Error "Error found:" "Error" full
1205+prettyPrintMultipleErrorsBox = prettyPrintMultipleErrorsWith Error "Error found:" "Error"
1206prettyPrintMultipleErrorsWith :: Level -> String -> String -> Bool -> MultipleErrors -> [Box.Box]
1207prettyPrintMultipleErrorsWith :: Level -> String -> String -> Bool -> MultipleErrors -> [Box.Box]
1207prettyPrintMultipleErrorsWith level intro _ full (MultipleErrors [e]) =
1208prettyPrintMultipleErrorsWith level intro _ full (MultipleErrors [e]) =