@@ -35,10 +35,10 @@ main = do
35 forM_ testCases $ \(P.moduleNameFromString -> mn, pragmas) ->
35 forM_ testCases $ \(P.moduleNameFromString -> mn, pragmas) ->
36 let mdl = takeJust ("module not found in docs: " ++ P.runModuleName mn)
36 let mdl = takeJust ("module not found in docs: " ++ P.runModuleName mn)
37 (find ((==) mn . Docs.modName) pkgModules)
37 (find ((==) mn . Docs.modName) pkgModules)
38− in forM_ pragmas (flip runAssertionIO mdl)
38+ in forM_ pragmas (`runAssertionIO` mdl)
40takeJust :: String -> Maybe a -> a
40takeJust :: String -> Maybe a -> a
41−takeJust msg = maybe (error msg) id
41+takeJust msg = fromMaybe (error msg)
43data Assertion
43data Assertion
44 -- | Assert that a particular declaration is documented with the given
44 -- | Assert that a particular declaration is documented with the given
@@ -254,8 +254,8 @@ testCases =
255 , ("ExplicitTypeSignatures",
255 , ("ExplicitTypeSignatures",
256 [ ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "explicit" (ShowFn (hasTypeVar "something"))
256 [ ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "explicit" (ShowFn (hasTypeVar "something"))
257− , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "anInt" (ShowFn ((==) P.tyInt))
257+ , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "anInt" (ShowFn (P.tyInt ==))
258− , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "aNumber" (ShowFn ((==) P.tyNumber))
258+ , ValueShouldHaveTypeSignature (n "ExplicitTypeSignatures") "aNumber" (ShowFn (P.tyNumber ==))