@@ -35,10 +35,10 @@ main = do
3535 forM_ testCases $ \(P.moduleNameFromString -> mn, pragmas) ->
3636 let mdl = takeJust ("module not found in docs: " ++ P.runModuleName mn)
3737 (find ((==) mn . Docs.modName) pkgModules)
38− in forM_ pragmas (flip runAssertionIO mdl)
38+ in forM_ pragmas (`runAssertionIO` mdl)
3939
4040takeJust :: String -> Maybe a -> a
41−takeJust msg = maybe (error msg) id
41+takeJust msg = fromMaybe (error msg)
4242
4343data Assertion
4444 -- | Assert that a particular declaration is documented with the given
@@ -254,8 +254,8 @@ testCases =
254254
255255 , ("ExplicitTypeSignatures",
256256 [ ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "explicit" (ShowFn (hasTypeVar "something"))
257− , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "anInt" (ShowFn ((==) P.tyInt))
258− , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "aNumber" (ShowFn ((==) P.tyNumber))
257+ , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "anInt" (ShowFn (P.tyInt ==))
258+ , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "aNumber" (ShowFn (P.tyNumber ==))
259259 ])
260260 ]
261261