@@ -35,7 +35,7 @@ import Control.Monad.Trans.State.Lazy
35import Control.Arrow(first)
35import Control.Arrow(first)
37import Language.PureScript.AST
37import Language.PureScript.AST
38−import Language.PureScript.Environment (isObject)
38+import Language.PureScript.Environment (isObject, isFunction)
39import Language.PureScript.Pretty
39import Language.PureScript.Pretty
40import Language.PureScript.Types
40import Language.PureScript.Types
41import Language.PureScript.Names
41import Language.PureScript.Names
@@ -670,7 +670,7 @@ prettyPrintSingleError full level e = prettyPrintErrorMessage <$> onTypesInError
670 , indent . line $ "import " ++ show im ++ " hiding (" ++ nm ++ ")"
670 , indent . line $ "import " ++ show im ++ " hiding (" ++ nm ++ ")"
672 suggestions' (TypesDoNotUnify t1 t2)
672 suggestions' (TypesDoNotUnify t1 t2)
673− | any isObject [t1, t2] = [line "Note that function composition in PureScript is defined using (<<<)"]
673+ | isObject t1 && isFunction t2 = [line "Note that function composition in PureScript is defined using (<<<)"]
674 | otherwise = []
674 | otherwise = []
675 suggestions' _ = []
675 suggestions' _ = []