@@ -35,7 +35,7 @@ import Control.Monad.Trans.State.Lazy
3535import Control.Arrow(first)
3636
3737import Language.PureScript.AST
38−import Language.PureScript.Environment (isObject)
38+import Language.PureScript.Environment (isObject, isFunction)
3939import Language.PureScript.Pretty
4040import Language.PureScript.Types
4141import Language.PureScript.Names
@@ -670,7 +670,7 @@ prettyPrintSingleError full level e = prettyPrintErrorMessage <$> onTypesInError
670670 , indent . line $ "import " ++ show im ++ " hiding (" ++ nm ++ ")"
671671 ]
672672 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 (<<<)"]
674674 | otherwise = []
675675 suggestions' _ = []
676676